标签:
int n, m = 0;
Console.WriteLine("阶梯数");
n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <=n; i++)
{
if (i< 50)
{
m += i;
}
else
{
m += 10;
}
}
Console.WriteLine("分数:" + m);
Console.ReadKey();
标签:
原文地址:http://www.cnblogs.com/lovesy2413/p/4309288.html