Computer Science, asked by Anonymous, 5 months ago

Consider the following declaration.
Scanner sc = new Scanner(System.in);
1. Suppose the input is 2. What is the output of the following code segments?
int code = sc.nextInt();
if (code == 1)
System.out.println("Red");
else
System.out.println("Blue");

Answers

Answered by japjeetkaur810
0

Answer:

your question I dont understand

Explanation:

soort

Similar questions