+ 2
Int i=10; if (i=10){System. Out.println (+i);} What will be the output?
5 Réponses
+ 3
Compile Error.
"Out" -> out
"Int" -> int
"+i" -> ++i
"i=10" -> "i == 10"
If fixed, 11.
Please write the code in the description, not the questions title.
+ 3
Ah, well if it was just +i then it would be 10.
Doesn't really do anything.
+ 1
ok
thanks for your information
+i it's correct.
+ 1
ya
0
why put " + i" ? why not just " i" i see why faith thought comple error because +i does nothing becuase your adding nothing to "i" so its pointless
if it was print(i+i); then you will get 20 even tho 20 is greater then 10 it still executes as is added after the Boolean.