Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /*
- pętla while - składnia:
- while(warunek)
- komenda_do_wykonania;
- */
- int main()
- {
- int liczba = 0;
- // pętla wypisująca kolejne liczby całkowite od 0 do 9
- while(liczba < 10)
- {
- cout << liczba << endl;
- ++liczba;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment