如下,為什么錯(cuò)誤,求大神解答
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? double price = 4388;//手機(jī)的售價(jià)
? ? ? ? ? ? double salary = 4978.67;//本月實(shí)發(fā)工資
? ? ? ? ? ? //請(qǐng)?jiān)谶@里補(bǔ)充條件判斷
? ? ? ? ? ? if(salary >= price)
? ? ? ? ? ? {
? ? ? ? ? ? ?Console.WriteLine("這月工資夠買手機(jī)!"); ??
? ? ? ? ? ? }
? ? ? ? ? ? ?else
? ? ? ? ? ? ? {
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ?Console.WriteLine("這月工資不夠買手機(jī)!"); ??
? ? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2017-03-28
我試了一下,代碼沒問題啊!
2017-03-26
知道了,中文嘆號(hào)