0

int a=20,b=15; if(a>10) { a++; b++; } System.out.println(a+” ”+b);

please fast

12th Dec 2020, 4:04 AM
Pratyaksh Raj Singh
Pratyaksh Raj Singh - avatar
1 Odpowiedź
+ 2
Pratyaksh Raj Singh You should revise your conditional statement....go for it.... BY the way.....it goes like this.... If(20>10) \\which is true...so it will execute the block... Then,its a++ and b++ which is post fix.... Then to print.. System.out.println(21+" "+16); So the result is: 21 16
12th Dec 2020, 5:56 AM
Abhinav Raj
Abhinav Raj - avatar