Advertisement
MeehoweCK

Untitled

Dec 6th, 2020
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     cout << "Podaj liczbe calkowita z przedzialu od 0 do 10: ";
  8.     int liczba;
  9.     cin >> liczba;
  10.     while(liczba < 0 || liczba > 10)
  11.     {
  12.         cout << "Podana liczba nie miesci sie w przedziale od 0 do 10. Wpisz jeszcze raz: ";
  13.         cin >> liczba;
  14.     }
  15.     cout << "Wpisales liczbe " << liczba << endl;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement