#include<fstream>
#include<windows.h>
using namespace std;
int main()
{
int timer1;
char beepvar = 7;
int timercounter = 10;
cout << "Please enter a number of minutes to wait before the first timer beep.\nThe timer will beep again 16 minutes after that, then 8 minutes later, then 6, then 4.\n\n";
cin >> timer1;
timer1 = timer1 * 60;
Sleep(timer1);
while(timercounter >= 0)
{
cout << beepvar;
timercounter--;
}
Sleep(960);
timercounter = 10;
while(timercounter >= 0)
{
cout << beepvar;
timercounter--;
}
Sleep(480);
timercounter = 10;
while(timercounter >= 0)
{
cout << beepvar;
timercounter--;
}
Sleep(360);
timercounter = 10;
while(timercounter >= 0)
{
cout << beepvar;
timercounter--;
}
Sleep(240);
timercounter = 10;
while(timercounter >= 0)
{
cout << beepvar;
timercounter--;
}
system("pause");
return 0;
}
Bookmarks