为什么if判断语句后面不能加分号??? if (salary2 > price) ;
double price = 4388;//手机的售价 double salary2 = 4978.67;//本月实发工资 if (salary2 > price) { Console.WriteLine("这月工资够买手机!"); //请在这里补充条件判断 } else { Console.WriteLine("这月工资不够买手机!");
double price = 4388;//手机的售价 double salary2 = 4978.67;//本月实发工资 if (salary2 > price) { Console.WriteLine("这月工资够买手机!"); //请在这里补充条件判断 } else { Console.WriteLine("这月工资不够买手机!");
2020-02-18
举报