找了好長時間都不知道哪里錯了
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;//本月實發(fā)工資
? ? ? ? ? ? if(salary>price);//請在這里補充條件判斷
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("這月工資夠買手機!");
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("這月工資不夠買手機!");
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2019-05-07
在if(salary > price)后面不要分號;