goto

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string strIntValue = Console.ReadLine();
            
            compute:
                if (strIntValue.ToUpper() == "CLS")
                {
                    Console.Clear();
                }
                else
                {
                    Console.WriteLine(CommonUtility.ConvertToSmallIntValue(strIntValue));
                    Console.WriteLine();
                }
            
            strIntValue = Console.ReadLine();
            goto compute;
        }
    }
}
posted on 2012-02-08 00:08  一路前行  阅读(233)  评论(0编辑  收藏  举报