Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i;
- i = 1;
- while(i<=10){
- cout << "while" << endl;
- i++;
- }
- i = 1;
- do{
- cout << "do" << endl;
- i++;
- }while(i<=10);
- for(i=1;i<=10;i++){
- cout << "for" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement