Advertisement
Kacper_Michalak

Zadanie pętle 1

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