当前位置: > C#中用while和do,while循环语句计算1-100的奇数和偶数和的代码怎么写...
题目
C#中用while和do,while循环语句计算1-100的奇数和偶数和的代码怎么写

提问时间:2021-01-03

答案
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
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.