最新回答 / weixin_慕虎1420592
?x++; 在if的執行語句里,當x的值為偶數時,if語句不執行,x的值一直不加1,while (x <= 30)一直執行,程序進入死循環。
2020-03-27
最贊回答 / Henry_pan
?{? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? double price = 4388;//手機的售價? ? ? ? ? ? double salary = 4978.67;//本月實發工資? ? ? ? ? ? if (salary>=price)//請在這里補充條件判斷? ? ? ? ? ?{?? ? ? ? ? ? ? ?Console.WriteLine("這月工資夠買手機!");? ? ? ? ? ? ? ?? ?...
2020-03-17
最新回答 / weixin_慕函數1480334
namespace ConsoleApplication1{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? Console.WriteLine("Please enter the weight:");? ? ? ? ? ? double sum;? ? ? ? ? ? int Weight = Convert.ToInt32(Console.ReadLine());? ? ? ? ? ? i...
2020-03-10