JakubKaczmarek_123

z1

Dec 4th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. for (int i =1; i <= 100; i++){
  8.    cout << i << endl;
  9. }
  10. int i = 1;
  11. while (i < 101){
  12.     cout << i << endl;
  13.     i++;
  14. }
  15. i = 0;
  16. do {
  17.     cout << i << endl;
  18.    i++;
  19. } while (i < 101);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment