Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int broj;
- cout << "Unesite neki broj: " << endl;
- while(!(cin>>broj))
- {
- system ("cls");
- cout<<"Unesite neki broj:" << endl;
- cin.clear();
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- }
- cout << "Broj = " << broj;
- system("pause>nul");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement