I'm writing a casino type program. The welcome is broken down to two lines. I'd like to have the 2nd line take a 2-3 second pause before appearing. Thanks.
Printable View
I'm writing a casino type program. The welcome is broken down to two lines. I'd like to have the 2nd line take a 2-3 second pause before appearing. Thanks.
Code:#include <windows.h>
#include <stdio.h>
int main()
{
printf("Hi");
fflush(stdout);
Sleep(3000); // 3 seconds
printf("Bye");
return 0;
}