#include <stdio.h> int main( void ) { int i, n; for ( n = 0; n < 10; n++ ) { for ( i = 0; i <= n; i++ ) { printf( "*" ); } printf( "\n" ); } return 0; }
#include <stdio.h> int main( void ) { int i, n; for ( n = 0; n < 10; n++ ) { for ( i = 0; i <= n; i++ ) { printf( "%d", i ); } printf( "\n" ); } return 0; }
#include <stdio.h> int main( void ) { int i, x, y; /*** ^Cg\ฆ ***/ printf( "\n * * * ใใฬ\ * * *\n" ); printf( " |" ); for ( i = 1; i <= 9; i++ ) { /* ใฬ\ฆ */ printf( "%3d", i ); } printf( "\n--------------------------------\n" ); /*** ใใฬ\ฆ ***/ for ( x = 1; x <= 9; x++ ) { printf( "%d |", x ); /* ถฬ\ฆ */ for ( y = 1; y <= 9; y++ ) { printf( "%3d", x * y ); /* ใใฬ\ฆ */ } printf( "\n" ); } return 0; }
ฅ฿้ฅ
uSาฬฝ฿ฬ|CgwKbพ๊v Copyrighticj 2000-2004 TOMOJI All Rights Reserved