string[] name = {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score = {89,90,98,56,60,91,93,85};
int max=0;
for(int i=0;i<score.Length;i++)
{
if(score[i]>score[max])
max=i;
}
Console.Write("分数最高的是{0},分数是{1}",name[max],score[max]);
int[] score = {89,90,98,56,60,91,93,85};
int max=0;
for(int i=0;i<score.Length;i++)
{
if(score[i]>score[max])
max=i;
}
Console.Write("分数最高的是{0},分数是{1}",name[max],score[max]);
namespace Test
{
class bra
{
static void Main(string[] args)
{
int A = 1;int B = 2;int C = 3;
int D = 4;int E = 5;int F = 6;
int cup = C;
if (cup >= D)
Console.WriteLine("菇凉请留下电话,谢谢。");
else
Console.WriteLine("对不起,当我知道你还没D罩杯的时候,我们就已经无缘了。");
}
}
}
{
class bra
{
static void Main(string[] args)
{
int A = 1;int B = 2;int C = 3;
int D = 4;int E = 5;int F = 6;
int cup = C;
if (cup >= D)
Console.WriteLine("菇凉请留下电话,谢谢。");
else
Console.WriteLine("对不起,当我知道你还没D罩杯的时候,我们就已经无缘了。");
}
}
}
2017-10-12
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x==y || x==8-y)
Console.Write("O");
else Console.Write(".");
}
Console.WriteLine();
{
for (int x = 1; x <= 7; x++)
{
if(x==y || x==8-y)
Console.Write("O");
else Console.Write(".");
}
Console.WriteLine();
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
for (int x = 1; x <= y; x++)
2017-10-12
WriteLine(true | false);//输出True
Console.WriteLine(true ^false);//输出False
Console.WriteLine(!false);//输出True
就是不喜欢他的标准答案
Console.WriteLine(true ^false);//输出False
Console.WriteLine(!false);//输出True
就是不喜欢他的标准答案
2017-10-11
最新回答 / 慕移动9181930
亲,可以把代码贴出来。我给看一下。cwrvuixhffjciuzzaohbrpbwbngkyqghrogzolduanrkufrcvwehkwomldbdubsfulmqyvlioxdvywqbmtab
2017-10-11
只要 Console.Write(6);
Console.Write(6);
Console.Write(6);
拿去拿去一样行
Console.Write(6);
Console.Write(6);
拿去拿去一样行
2017-10-11
最赞回答 / qq_小蒋_0
这个二维数组可以看成是3组一维数组第一组{'我','是','软'}第二组{'件','工','程'}第三组{'师','啦','!'}如下图数组中[1,1]就代表第二组数组中的第二个成员,也就'工'[1,2]就代表第二组数组中的第三个成员,也就'程'[2,0]就代表第三组数组中的第一个成员,也就'师'<...图片...>
2017-10-11
最新回答 / 慕移动9181930
代码中是没有办法识别中文符号的,所以写代码的时候一定要用英文符号就是导入相应的包,以便程序可以调用包中的类,就是在java文件顶部使用import关键字导入的那些
2017-10-11