while loop, for loop and repeat loops

count from 0 to 200(in steps of 10) using while, for and repeat loops (write three separate programs.
Are you sure that it's for C++?
BTW http://www.cplusplus.com/articles/how_to_ask/
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...
Topic archived. No new replies allowed.