為什么顯示出輸出錯誤
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? double salary = 6000.00;//基本工資
??????????? double prize = 3200.00;//獎金
??????????? double tax = 4500.00;//交稅
??????????? Console.WriteLine("我的工資獎金總額是{0}元",(salary+ prize));
??????????? Console.WriteLine("我的稅后收入是{0}元",(salary+ prize- tax));
??????? }
??? }
}
2019-06-12
不換行
2019-07-03
倒數第二行的代碼 要求的是不換行
所以console.writeline要改成console.write
2019-06-20
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? double salary = 6000.00;//基本工資
??????????? double prize = 3200.00;//獎金
??????????? double tax = 4500.00;//交稅
??????????? Console.Write("我的工資獎金總額是{0}元",(salary+ prize));
??????????? Console.WriteLine("我的稅后收入是{0}元",(salary+ prize- tax));
??????? }
??? }
}
2019-05-16
你試著把課程關一下再打開? 我上次也是這個問題? 我關了再打開把之前的粘上去就好了