void main( )
{
int i, j, n;
printf( "Input\nPlease input n: \n" );
scanf( "%d", &n );
printf( "Output:\n" );
for( i = 1; i {
for( j = 1; j printf( " " );
for( j = 1; j printf( "#" );
printf( "\n" );
}
for( i = n; i > 0; i-- )
{
for( j = n - i; j >= 0; j-- )
printf( " " );
for( j = 2 * i - 2; j >= 0; j-- )
printf( "#" );
printf( "\n" );
}
}
1.实际上就是打印空白及“#”号
2.一行一行的打印
3.分成上半部分及下半部分