cnm 就差一个逗号,至于么???
string name = "曹少钦";//姓名,string类型
char sex = '男';//性别,char类型
int age = 19;//年龄,int类型
double height = 1.72;//身高,double类型
Console.WriteLine("我叫{0},是{1}生,今年{2}岁,身高{3}米。,",name,sex,age,height);
string name = "曹少钦";//姓名,string类型
char sex = '男';//性别,char类型
int age = 19;//年龄,int类型
double height = 1.72;//身高,double类型
Console.WriteLine("我叫{0},是{1}生,今年{2}岁,身高{3}米。,",name,sex,age,height);
2018-02-16
int avg=0;
int sum = 0;
for(int i=0;i<num.Length;i++)
{
sum+=num[i];
avg = sum / num.Length;
if(num[i]>avg)
{
Console.WriteLine(..);
}
}
int sum = 0;
for(int i=0;i<num.Length;i++)
{
sum+=num[i];
avg = sum / num.Length;
if(num[i]>avg)
{
Console.WriteLine(..);
}
}