Advertisement
MeehoweCK

Untitled

Jul 9th, 2021
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     // pętla do
  8.     int i = 0;
  9.     do
  10.     {
  11.         cout << i << '\t';
  12.         ++i;
  13.     } while(i < 10);
  14.     cout << endl;
  15.  
  16.     // pętla for
  17.     for(i = 0; i < 10; ++i)
  18.         cout << i << '\t';
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement