Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- int loopcounter = 0;
- while(loopcounter<100)
- {
- loopcounter++;
- if (loopcounter % 5 == 0)
- continue;
- cout << "hello world forever" << loopcounter << endl;
- }
- do
- {
- loopcounter++;
- if (loopcounter % 5 == 0)
- continue;
- cout << "hello world forever" << loopcounter << endl;
- } while (loopcounter <100);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement