cyclic.c 264 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #include <stdio.h> int main(int argc, char* argv[]){ int len=0; int i =0; while(argv[1][i]<='9'&&argv[1][i]>='0'){ len += argv[1][i]-48; len *= 10; i++; } len /= 10; printf("%d\n",len); while(len-->0){ putc('0',stdout); } printf("\n"); }