标签:
//100以内的奇数的和
int sum = 0;
for (int i = 1; i <= 100;i++ )
{
if(i%2!=0)
sum += i;
Console.Write(i+"\t");
}
Console.WriteLine(sum);
打印100以内的奇数,并求和
原文地址:http://www.cnblogs.com/fengsantianya/p/5456631.html