> 其他 >
C#中用while和do,while循环语句计算1-100的奇数和偶数和的代码怎么写
人气:431 ℃ 时间:2019-11-06 18:25:49
解答
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication5
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("使用While结构计算");
int oddSum = 0,evenSum=0,i = 1;
while (i
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版