- 1

What is the value of the variable b after running this piece of code?

int a = 5; int b = 10; if ( (a < b) && !(7 > b) ) { if ( b < 3 ) { b += 5; } else { b *= 2; } } else { b++; }

18th Mar 2021, 5:53 PM
Charityn
1 Respuesta
0
try it by yourself, by running it in a code playground ;P
18th Mar 2021, 5:58 PM
visph
visph - avatar