最新回答 / 慕的地0236682
while( ( ch=getchar()!='\n' ) )→while( ( ch=getchar() )!='\n' )小伙子寫程序要縮進,不然都懶得看你寫的代碼
2021-03-19
最贊回答 / WCCCC
自我debug已經(jīng)完成:15行for循環(huán)中int=0是錯誤的,應(yīng)為int i=0。接下來會因為我使用了break而報錯,刪除break;即可解決問題。
2021-03-05
已采納回答 / 和你熟
? for (int a = 0; a < 10; a++)? ? ? ? ? ? {? ? ? ? ? ? ? ? for (int b = 0; b < 10; b++)? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? if ((a != 0 && a != 9) && (b != 0 && b != 9))? ? ? ? ? ? ? ? ? ? ? ? Console.Write(' ');? ? ? ? ? ? ?...
2021-01-31
最新回答 / 慕標(biāo)6286552
{吳松,錢東宇,伏晨,陳陸,周蕊,林日鵬,何昆,關(guān)欣}? 每個字符串都沒加""?int k=i; int K上面定于過了就補丁重復(fù)定義了score[k]? 變量名score上面沒定義過 應(yīng)該改為name[K]
2021-01-24
最新回答 / weixin_慕虎1420592
score.Length返回的是數(shù)組元素個數(shù),數(shù)組元素從0開始,循環(huán)條件到score.Length-1是數(shù)組最后一個元素,所已不能包括等于
2021-01-24
已采納回答 / 闊狗闊落
第一個for循環(huán)后面少了一個{,所以下面換行的語句就沒起到作用static void Main(string[] args)? {? ? ? ? ? ?for (int y = 1; y <= 3; y++){? ? ? ? ? ? ? ? for (int x = 1; x <= y+2; x++) {? ? ? ? ? ? ? ? ? ? Console.Write(x);? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? Console.WriteLine();? ? ? ...
2021-01-23
最新回答 / 至尊丶龍貓
string[] name=new string[] {"景珍","林惠洋","成蓉","洪南昌","龍玉民","單江開","田武山","王三明"};? ? ? ? ? ?int [] score=new int[] {90,65,88,70,46,81,100,68};? ? ? ? ? ?int sum=0,avg;? ? ? ? ? ?for(int i=0;i<score.Length;i++){? ? ? ? ? ? ? ?sum+=score[i];? ? ? ? ? ?}? ? ? ?...
2021-01-09