1. Engineering
  2. Computer Science
  3. e 2142 outputting all combinations activity output all combinations...

Question: e 2142 outputting all combinations activity output all combinations...

Question details

E | 2.142: Outputting all combinations ACTIVITY Output all combinations of character variables a, b, and c. If a-x. b y, and c-2, then the output is: xyz xzy yxz yzx zxy zyx Note: If outputting multiple character variables with one statement, the argument for System.out.print0 should start with+ Your code will be tested in three different programs, with a, b, c assigned with X, y,z, then with .#, s: %, then with 1 2, 3. 1 import java.util.Scanner; 2 public class OutputCombinations( 3 public static void main (String [ args) ing [1 C Scanner scnr new Scanner (System.in); char a; char b; char c; a scnr.next().chart () b scnr.next).charAt (0); 10 12 14 16 scnr.next).charAt (0); Your solution goes here/ System.out.printin() 17 Run X Testing with x.Y. z s. See highlights bel ow Your output Expected output xyz xzy yxz yzx zxy zyx
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution