Advertisement
MeehoweCK

Untitled

Apr 16th, 2021
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int liczba = 10;
  8.     do              // pętla wykona się mimo tego, że warunek w nawiasie nie jest spełniony - pętla do ZAWSZE wykonuje się co najmniej raz
  9.     {
  10.         cout << liczba << endl;
  11.         ++liczba;
  12.     } while (liczba < 10);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement