What is printed by the following piece of code?
int a = 10; int b = 30; if (a * 2 < b) { a = a * 3; } if (b < a) { b++; } else { a--; } System.out.println(a + " " + b);
Answers
Answered by
3
(a+" "+b) this will be printed
Answered by
5
(20<30) {a=60;} if(30<60) {31;) else(59;) System. out. println(59" "+31) ;
Similar questions
Social Sciences,
8 months ago
English,
8 months ago
Biology,
8 months ago
Social Sciences,
1 year ago
English,
1 year ago
Math,
1 year ago