0

AclaraciĂłn

faltaron dos relacionales "<" y ">" No es lo mismo for(int i=0;i<10;i++) que for(int i=0;i<=10;i++) o if (a<=b) que if (a<b) Fail SoloLearn

2nd Jan 2018, 3:46 AM
KaZper Smoke
KaZper Smoke - avatar
3 Answers
+ 15
for(int i=0 ; i<10 ; i++){} will generate numbers less than 10 i.e 0-9 for (int i ; i<=10; i++){} will generate numbers less than equal to 10 i.e 0-10 the second one can also be written as for(int i ; i<11 ; i++){} -----> generating numbers 0-10
2nd Jan 2018, 3:58 AM
Frost
Frost - avatar
0
Fail
2nd Jan 2018, 3:47 AM
KaZper Smoke
KaZper Smoke - avatar
0
exacto
2nd Jan 2018, 3:59 AM
KaZper Smoke
KaZper Smoke - avatar