Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int liczba;
- bool wynik;
- do
- {
- std::cout << "podaj liczbe" << std::endl;
- std::cin >> liczba;
- if (std::cin.good())
- wynik = true;
- std::cin.clear();
- std::cin.sync();
- } while( wynik == false );
- std::cout << "wpisales :" << liczba;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement