Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- int liczba;
- cout << "Podaj liczbe?" << endl;
- cin >> liczba;
- do {
- if( cin.good() ) {
- cout << endl;
- } else {
- cout << "Zla liczba, sproboj jeszcze raz" << endl;
- }
- }
- while ( cin.fail() ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement