+ 1

What's the output of this code ?

int a=1; int b=2; for (int i=0;i<10;i++){} System.out.ptintln(a+"b");

9th Jul 2017, 9:11 AM
Ahmed Mohammed Ahmed Khodary
Ahmed Mohammed Ahmed Khodary - avatar
5 Answers
+ 2
@Ace .. oh thanks very much
9th Jul 2017, 10:00 AM
Ahmed Mohammed Ahmed Khodary
Ahmed Mohammed Ahmed Khodary - avatar
+ 1
um "12"?
9th Jul 2017, 9:26 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
when i give this answer in challenge it return wrong ... when I tried this code in core playground it gave me an error message
9th Jul 2017, 9:39 AM
Ahmed Mohammed Ahmed Khodary
Ahmed Mohammed Ahmed Khodary - avatar
+ 1
1b is the right answer
9th Jul 2017, 10:17 AM
Venkatarami Reddy