最贊回答 / valenbine
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{??? class Program??? {??????????????? static int Avg(int[] scores)??????? {??????????? int avgscore=0;??????????? int sum = 0;??????????? foreach (var score in scores)?...
2017-09-25
最新回答 / 慕粉1356016785
char[,] ch = { {'我','是','軟'},{'件','工','程'},{'師','啦','!'}{‘加’,‘名’,‘子’}};?
2017-09-21
已采納回答 / 慕標8192710
?for (int x = 1; x <= 7; x++)//循環7行? ? ? ? ? ? {? ? ? ? ? ? ? ? for (int y = 1; y <= 7; y++)//循環7列? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? if (x == y || x + y == 8)//對角線打印O? ? ? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? ? ? Console.Write("O");? ? ? ? ? ? ? ? ?...
2017-09-20
已采納回答 / qq_陽光丶剛好_0
因為你給{0}的賦的值是sum,你打印的是Consol.WriteLine("和是{0}",sum)這里的0本來沒有任何值,是取決于你給0賦什么值,里的sum改成int_num1這里的0就會變成int_num1了
2017-09-19
最新回答 / qq_RR_15
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? string job = "科員";? ? ? ? ? ? if (job == "局長")? ? ? ? ? ? {? ? ? ? ? ? ? ? Console.WriteLine("...
2017-09-18
最贊回答 / 北涼客
for (int x = 1; x <= 7; x++)//循環7行? ? ? ? ? ? {? ? ? ? ? ? ? ? for (int y = 1; y <= 7; y++)//循環7列? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? if (x == y || x + y == 8)//對角線打印O? ? ? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? ? ? Console.Write("O");? ? ? ? ? ? ? ? ? ...
2017-09-18