Created
May 8, 2017 05:53
-
-
Save eebssk1/b316d4895cc89ff1d61027e3f26b6c7c to your computer and use it in GitHub Desktop.
write 1~64 in one line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
int main(void) { | |
int a; | |
int c; | |
for(c=1;c<=64;c++) { | |
a=c; | |
printf("\r"); | |
fflush(stdout); | |
printf("%d",a); | |
usleep(16000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment