Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int liczba = 10;
- do // pętla wykona się mimo tego, że warunek w nawiasie nie jest spełniony - pętla do ZAWSZE wykonuje się co najmniej raz
- {
- cout << liczba << endl;
- ++liczba;
- } while (liczba < 10);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment