0
For loop
How to create a program that will display all odd number from 1 to 20
2 Answers
+ 4
//Create a for loop
if(i%2==1)
cout<<i;
https://www.sololearn.com/discuss/1201003/?ref=app
https://www.sololearn.com/discuss/692906/?ref=app
0
for (int i=1; i<20; i+=2)
cout << i << endl;