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
int y = 5;
while (y>0)//请输入
{
Console.Write(y--+" ");
//请输入
}
while (y>0)//请输入
{
Console.Write(y--+" ");
//请输入
}
2016-10-08
Console.WriteLine("今年是{0}",year%4==0?"闰年":"平年");
有必要那么麻烦吗大哥们?
有必要那么麻烦吗大哥们?
2016-10-08
if(money>=100000){//请在这里补充多重条件判断
Console.WriteLine("送一台微波炉");
}else if(money>=50000){
Console.WriteLine("送一套茶具");
}else if(money>=10000){
Console.WriteLine("送一袋大米");
}else{
Console.WriteLine("没有礼品");
}
Console.WriteLine("送一台微波炉");
}else if(money>=50000){
Console.WriteLine("送一套茶具");
}else if(money>=10000){
Console.WriteLine("送一袋大米");
}else{
Console.WriteLine("没有礼品");
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("列奥波尔多·福图纳托·加尔铁里·卡斯特利出生在布宜诺斯艾利斯的一个工人家庭");//使用常量
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("列奥波尔多·福图纳托·加尔铁里·卡斯特利出生在布宜诺斯艾利斯的一个工人家庭");//使用常量
}
}
}