運行錯誤時調試方法
阿新 • • 發佈:2018-04-07
static names ace text ctr linq 點擊 方法 ext
using System.Linq;
using System.Text;
namespace ConsoleApplicationl
{
class Program
{
static void Main(string[] arge)
{
//調試運行 : 點擊啟動 或 按 F5
//非調試運行 :CTRL + F5
Console.writeLine("請輸入被除數");
string input = Consoule.ReadLine();
int a = int. parse(input);
Console.WriteLine("請輸入除數");
input = Console.ReadLine();
int b = int.Parse(input);
int c = a / b;
string result = a + "/" + b + "=" + c ;
Console.Write(resule);
Console.ReadLine();
}
}
}
運行錯誤時調試方法