你們好,一下程序為什么會 運行成功,輸出錯誤
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? double price = 4388;//蘋果手機的售價
? ? ? ? ? ? double salary = 4978.67;//本月實發工資
? ? ? ? ? ? if(salary>=4388)
? ? ? ? ? ? {
? ? ? ? ? ? Console.WriteLine("這月工資夠買手機!");
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? Console.WriteLine("這月工資不夠買手機");
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2018-09-29
沒有錯的,兄弟。
2018-06-10
把if里面的4388改成price就沒有錯誤了
2017-09-27
看看打印出的文本跟題目要求打印的是不是一模一樣,哪怕有一個字或者符號不正確,都是輸出錯誤