Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<windows.h>
- int main()
- {
- int TIMES = 5;
- for(int i=0; i<TIMES; i++)
- {
- printf("%12s", i<4
- ?"Lives left: ":"Life left: ");
- for(int j=0; j<TIMES-i; j++)
- printf("%c", 3);
- Sleep(1000);
- system("cls");
- Sleep(100);
- }
- for(int i=0; i<3; i++)
- {
- char s[] = "..:: Game over ::..";
- printf("%*s\n",40+strlen(s)/2, s);
- Sleep(500);
- system("cls");
- Sleep(500);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement