打印图形
111
101
1001
10001
100001
1000001
10000001
100000001
1000000001
#include <stdio.h> int main( void ) { puts( "1\n" "11\n" "101\n" "1001\n" "10001\n" "100001\n" "1000001\n" "10000001\n" "100000001\n" "1000000001\n" ); }
#include <stdio.h> int main( void ) { puts( "1" ); for( unsigned r=1,t=11; r!=10; ++r, t=t*10-9 ) printf( "%u\n", t ); }
#include <stdio.h> int main( void ) { puts( "1" ); for( unsigned r=1; r!=10; ++r ) printf( "1%.*u\n", r, 1 ); }