最新回答 / qq_Ontheway_9
Console.WriteLine("按2键退出"); while (Console.ReadKey().KeyChar != '2') { }
2016-10-10
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x;
for ( x=1;x<=12;x++)//请填写代码
{
Console.WriteLine(x+" ");
}
}
}
}
{
class Program
{
static void Main(string[] args)
{
int x;
for ( x=1;x<=12;x++)//请填写代码
{
Console.WriteLine(x+" ");
}
}
}
}
2016-10-10
static void Main(string[] args)
{
string[] name = {"关羽","张飞","赵云","马超","黄忠"};
for(int i=0;i<name.Length;i++){
Console.Write(name[i]+",");
}
}
{
string[] name = {"关羽","张飞","赵云","马超","黄忠"};
for(int i=0;i<name.Length;i++){
Console.Write(name[i]+",");
}
}
for (int i=0;i<6;i++)//请填写for循环结构
{
Console.WriteLine("Yeah!");
}
{
Console.WriteLine("Yeah!");
}
int x;//循环计数变量
x = 1;//行① 请填写计数变量的初始化语句
while (x++<6)//行② 请填写循环条件
{
Console.Write("加油!");
//行③ 请填写计数变量的自加语句
}
x = 1;//行① 请填写计数变量的初始化语句
while (x++<6)//行② 请填写循环条件
{
Console.Write("加油!");
//行③ 请填写计数变量的自加语句
}
namespace Test
{
class Program
{
static void Main(string[] args)
{
string[] t =new string[]{"C","Sh","a","rp"};
for(int x=0;x<t.Length;x++)//遍历字符串数组t
{
Console.Write(t[x]+"");
}
Console.WriteLine();}}}
{
class Program
{
static void Main(string[] args)
{
string[] t =new string[]{"C","Sh","a","rp"};
for(int x=0;x<t.Length;x++)//遍历字符串数组t
{
Console.Write(t[x]+"");
}
Console.WriteLine();}}}
2016-10-09
最新回答 / 王者殇明
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApptest1{ class Program { static void Main(string[] args) { int x=0; ...
2016-10-09