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