what is the input of the odd numbers 1-100,using looping?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the input of the odd numbers 1-100,using looping??

24th Sep 2016, 9:42 AM
juderey
4 Answers
+ 2
How to output odd numbers from 1 to 100 with a loop: for (int i = 1; i <= 100; i+=2) { cout << i << endl; }
24th Sep 2016, 9:48 AM
Zen
Zen - avatar
0
thank you.
25th Sep 2016, 6:25 AM
juderey
- 1
jhkgylvg
25th Sep 2016, 11:41 AM
Kamaal ansari
Kamaal ansari - avatar
- 1
kamaal
25th Sep 2016, 11:42 AM
Kamaal ansari
Kamaal ansari - avatar