count from 0 to 200(in steps of 10) using while, for and repeat loops (write three separate programs.
There is something like this in C++
1 2 3 4 5 6 7 8 9 10 11 12 13
|
//Tested in VC++ Express 2008
#include<iostream>
using namespace std;
int main(){
int i=0;
do{
cout<<i<<endl;
i=i+10;
}while(i<=200);
system("pause");
return 0;
}
| |
not repeat loop---try your best for while loop and for loop.
Last edited on
thank u so much for your help...