0
How to print number is c++
2,4,6,8,10,14,16,18,20 till.
5 Answers
+ 5
for(int i=2;i<20;i+=2){
cout<<i;
}
https://www.sololearn.com/learn/CPlusPlus/1616/
+ 4
Mahendra Kumar i might suggest you read the c++ course from scratch
0
I don't understand
0
Please tell me course syllabus send
0
just use for loop... use iteration expression as. (variable+=2) or (variable=variable+2)
this statement will increment the variable by 2
https://code.sololearn.com/cXhO9UMdL7Jp/?ref=app