笔试题中的两道简单算法题(用C#实现)

1、九九乘法表

using  System;

namespace  ConsoleApplication1
{
    
///   <summary>
    
///  我的第一个C#
    
///   </summary>
     class  Class1
    {
        
///   <summary>
        
///  应用程序的主入口点。
        
///   </summary>
        [STAThread]        
        
static   void  Main( string [] args)
        {
            
int  i,j;
            
for (i = 1 ;i <= 9 ;i ++ ){
                
for (j = 1 ;j <= i;j ++ ){
                   Console.Write(i
+ " * " + j + " = " + i * j + " \t " );
                }
                Console.Write(
" \n\n " );
            }
        }
    }
}

2、10的倍数突出显示

你可能感兴趣的:(笔试题)