형태 : ### 2 단 ### 2 x 1 = 02 2 x 2 = 04 ### 3 단 ### 3 x 1 = 03 3 x 2 = 06 for ( int i = 2 ; i <= 9 ; i ++) / / 단 { Console . WriteLine ( "### { 0 } 단 ###", i ) ; for ( int k = 1 ; k <= 9 ; k ++) / / 숫자 { Console . WriteLine ( "{ 0 } x { 1 }={ 2 : d 2 }", i , k , ( i * k ) ) ; } } 형태 : 2 x 1 = 02 3 x 1 = 03 4 x 1 = 04 5 x 1 = 05 6 x 1 = 06 7 x 1 = 07 8 x 1 = 08 9 x 1 = 09 2 x 2 = 04 3 x 2 = 06 4 x 2 = 08 5 x 2 = 10 6 x 2 = 12 7 x 2 = 14 8 x 2 = 16 9 x 2 = 18 2 x 3 = 06 3 x 3 = 09 4 x 3 = 12 5 x 3 = 15 6 x 3 = 18 7 x 3 = 21 8 x 3 = 24 9 x 3 = 27 2 x 4 = 08 3 x 4 = 12 4 x 4 = 16 5 x 4 = 20 6 x 4 = 24 7 x 4 = 28 8 x 4 = 32 9 x 4 = 36 2 x 5 = 10 3 x 5 = 15 4 x 5 = 20 5 x 5 = 25 6 x 5 = 30 7 x 5 = 35 8 x 5 = 40 9 x 5 = 45 for ( int i = 1 ; i <= 9 ; i ++) / / 숫자 { for ( int k = 2 ; k <= 9 ; k ++) / / 단 { Console . Write ( "{ 0 } x { 1 }={ 2 : d 2 } ", k , i , ( i * k ) ) ; } Console . WriteLine ( ) ; }