最赞回答 / qq_扬名工作室_bfAGKR
好像是控制台应用选错了 2017版的有两个控制台一个是控制台应用(.NET Core)一个是控制台应用(.NET Framework)我的错误是用的控制台应用(.NET Framework)
2018-09-24
int y = 5;
while (y<=5&&y>0)//请输入
{
Console.Write(y+" ");
//请输入
y--;
}
while (y<=5&&y>0)//请输入
{
Console.Write(y+" ");
//请输入
y--;
}
2018-09-24
最新回答 / ILIKE学习
int[] fs = new int[4]; string[] name = new string[4]; int max = fs[0]; string maxname = null; int sum = 0; for (int i = 0; i < name.Length; i++) { Console.Writ...
2018-09-19
最新回答 / masterintel
using System;using System.Collections.Generic;using System.Text;namespace projGetMaxScore{ class Program { static void Main(string[] args) { //语数外三科 可以用二维数组来写 //{{语文成绩,数学成绩,英语成绩}} int[,] score = new int[5,...
2018-09-17
已采纳回答 / 慕莱坞2375072
static void Main(string[] args) { //声明两组数组 ; int[] score =new int[]{89,90,98,86,60,91,93,85}; string[] name = new string []{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; //声明分数中的最大值和得分者; int max...
2018-09-17
最新回答 / Lagerstroemia0106
Console.Write("我的工资是{0}, 我的税后工资是{1}" ,salary + prize, salary+prize-tax);
2018-09-17
string[] name={"吴松","钱东宇","伏晨","陈陆","周茹","林日鹏","何昆","关欣"};
int[]score={89,90,98,56,60,91,93,85};
int Max;
Max=score[0];
int index=0;
for(int i=1;i<score.Length;i++)
{
if(score[i]>Max)
{
Max=score[i];
index=i;
}
}
Console.WriteLine ("分数最高的是" + name[index] + ",分数是" + Max);
int[]score={89,90,98,56,60,91,93,85};
int Max;
Max=score[0];
int index=0;
for(int i=1;i<score.Length;i++)
{
if(score[i]>Max)
{
Max=score[i];
index=i;
}
}
Console.WriteLine ("分数最高的是" + name[index] + ",分数是" + Max);
string text = (year%=4) == 0 ?"闰年":"平年";括号的妙用,加上了就好理解了
2018-09-16