+ 1

int p=0,i=1; while (i<=5) { System.out.println(i); p=p+i; i++; }

Give the output of the above line...☝

13th Feb 2017, 7:28 PM
Yashasvi Rastogi
Yashasvi Rastogi - avatar
3 Réponses
+ 3
1 2 3 4 5 thanks for correcting Yashasvi.
13th Feb 2017, 7:32 PM
Megatron
Megatron - avatar
+ 2
ur welcome @Megatron
13th Feb 2017, 7:42 PM
Yashasvi Rastogi
Yashasvi Rastogi - avatar
+ 1
no 0 (zero)
13th Feb 2017, 7:36 PM
Yashasvi Rastogi
Yashasvi Rastogi - avatar