Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <conio.h>
- using namespace std;
- int main()
- {
- int broj;
- cout << "Unesi prirodni broj <=100: ";
- cin >> broj;
- while (broj < 1 || broj >100)
- {
- cout << "Krivi unos" << endl;
- cout << "Unesi ponovno: ";
- cin >> broj;
- }
- int spavanje = broj * 1000;
- Sleep(spavanje);
- cout << "GOTOVO" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement