Skip to content

Instantly share code, notes, and snippets.

@eebssk1
Created May 8, 2017 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eebssk1/b316d4895cc89ff1d61027e3f26b6c7c to your computer and use it in GitHub Desktop.
Save eebssk1/b316d4895cc89ff1d61027e3f26b6c7c to your computer and use it in GitHub Desktop.
write 1~64 in one line
#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