Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- void wait ( int seconds )
- {
- clock_t endwait;
- endwait = clock () + seconds * CLOCKS_PER_SEC ;
- while (clock() < endwait) {}
- }
- int main ()
- {
- int n;
- printf ("Starting countdown...\n");
- for (n=60; n>0; n--)
- {
- printf ("%d\n",n);
- wait (1);
- }
- printf ("FIRE!!!\n");
- return 0;
- }
Add Comment
Please, Sign In to add comment