+ 1

What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {

help me

28th Dec 2017, 11:00 AM
Akshara k
Akshara k - avatar
3 Réponses
+ 1
there won't be any output displayed, since you have not used any print statement.. but result will store value of 10
28th Dec 2017, 11:04 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
help me
28th Dec 2017, 11:00 AM
Akshara k
Akshara k - avatar
0
hi, the result will be 10 when i=3
28th Dec 2017, 12:18 PM
Nanda Balakrishnan