Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- void delay(unsigned int seconds)
- {
- int aux=0;
- int n = seconds * 1024;
- clock_t start_time = clock();
- while (clock() < start_time + n)
- {
- aux=aux;
- }
- }
- void main()
- {
- unsigned int contador = 1;
- for (; contador >= 1; )
- {
- printf("%d ", contador);
- contador++;
- delay(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement