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