+ 1

To display first 10 even numbers using loop

9th May 2017, 10:55 AM
prince Master
prince Master - avatar
5 Antworten
+ 21
int i; for (i= 0; i<= 10; i += 2) // Most simple loop.
9th May 2017, 11:00 AM
Dev
Dev - avatar
+ 18
@pixie :D Mayur helped me!
9th May 2017, 11:49 AM
Dev
Dev - avatar
+ 4
You forgot to print it @dayve. Lol
9th May 2017, 11:18 AM
Pixie
Pixie - avatar
+ 4
for(int i=0;i<=10;i+=2){ cout<<i; }
9th May 2017, 11:43 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 1
I will not be less than equal to 10 will be less than equal to 20
10th May 2017, 4:16 AM
Viraj Kamble
Viraj Kamble - avatar