- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
#include <stdio.h>
int main(int argc, char *argv[])
{
int num=0;
for(;num<99999999;++num)
{
if(num<10)
fprintf(stdout, "0000000%d\n", num);
else if(num<100)
fprintf(stdout,"000000%d\n", num);
else if(num<1000)
fprintf(stdout, "00000%d\n", num);
else if(num<10000)
fprintf(stdout, "0000%d\n", num);
else if(num<100000)
fprintf(stdout, "000%d\n", num);
else if(num<1000000)
fprintf(stdout, "00%d\n", num);
else if(num<10000000)
fprintf(stdout, "0%d\n", num);
}
}