最新回答 / 孟德爾的怪豆
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? for (int x = 1; x < 10; x++)? ? ? ? ? ? {? ? ? ? ? ? ? ? if (x == 3 || x == 8)? ? ? ? ? ? ?...
2016-10-30
最新回答 / 慕粉4364288
因為x的初始值是1,while條件里面是>2才能執行循環,但是do....while循環是無條件執行一次循環的,所以無條件執行一次do里面的語句,x++后的值是2,所以輸出的值是2.
2016-10-30
已采納回答 / 小小1七爺
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? for (int x = 1; x < 10; x++)? ? ? ? ? ? {? ? ? ? ? ? ? ? if(x==3||x==8)? ? ? ? ? ? ? ? ? ? ...
2016-10-28
最新回答 / 慕勒7123956
其實很簡單,你這個程序應該是沒有問題的,只可能是幕課的答案驗證的問題,你可以把分數最高的是{0},分數是{1}這一句里面的逗號變成中文的逗號,(親測有效)
2016-10-19