Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Podaj liczbe calkowita z przedzialu od 0 do 10: ";
- int liczba;
- cin >> liczba;
- while(liczba < 0 || liczba > 10)
- {
- cout << "Podana liczba nie miesci sie w przedziale od 0 do 10. Wpisz jeszcze raz: ";
- cin >> liczba;
- }
- cout << "Wpisales liczbe " << liczba << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement