My program is in an infinite loop, when It hits the "Bye" part in the code it goes right back up to the top. Help with this. It's a pretty simple program so I can't see what I did wrong.
#include <iostream>
#include <windows.h>
using namespace std;
int main () {
cout<<"Shutdown sequences initiated! \n";
cout<<"3";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<"2";
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<"1";
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<".";
Sleep(250);
cout<<"Bye!";
system("shutdown -s");
return 0;
}