請問各位哪里錯(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ā)工資
? ? ? ? ? ? if (price <= salary)//請?jiān)谶@里補(bǔ)充條件判斷
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.Write("這月工資夠買手機(jī)!");
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.Write("這月工資不夠買手機(jī)!");
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2021-03-01
if(salary>=price)//請?jiān)谶@里補(bǔ)充條件判斷
? ? ? ? Console.Write("這月工資夠買手機(jī)!");
else Console.Write("這月工資不夠買手機(jī)!");
2020-06-30
;字符改為英文字符