namespace Test
{
class Program
{
static void Main(string[] args)
{
int score = 96;//分数
if(score >95)//判断
{//分支1
Console.WriteLine("要什么自行车");
}
}
}
}
{
class Program
{
static void Main(string[] args)
{
int score = 96;//分数
if(score >95)//判断
{//分支1
Console.WriteLine("要什么自行车");
}
}
}
}
2017-07-21
string[,] num = new string[8, 2] { { "吴松", "89" }, { "钱东宇", "90" }, ...}
int a = 0, max = int.Parse(num[0,1]);
for (int i = 0; i < num.GetLongLength(0); i++)
{ if (int.Parse(num[i,1])>max)
{ max = int.Parse(num[i,1]);
a = i; }
}
Console.WriteLine("分数最高的是" + num[a, 0]+"," + "分数是"+max);
int a = 0, max = int.Parse(num[0,1]);
for (int i = 0; i < num.GetLongLength(0); i++)
{ if (int.Parse(num[i,1])>max)
{ max = int.Parse(num[i,1]);
a = i; }
}
Console.WriteLine("分数最高的是" + num[a, 0]+"," + "分数是"+max);
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("6");
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("6");
}
}
}
2017-07-20