软件工程实验打印.docx

上传人:b****7 文档编号:16064273 上传时间:2023-07-10 格式:DOCX 页数:13 大小:989.16KB
下载 相关 举报
软件工程实验打印.docx_第1页
第1页 / 共13页
软件工程实验打印.docx_第2页
第2页 / 共13页
软件工程实验打印.docx_第3页
第3页 / 共13页
软件工程实验打印.docx_第4页
第4页 / 共13页
软件工程实验打印.docx_第5页
第5页 / 共13页
软件工程实验打印.docx_第6页
第6页 / 共13页
软件工程实验打印.docx_第7页
第7页 / 共13页
软件工程实验打印.docx_第8页
第8页 / 共13页
软件工程实验打印.docx_第9页
第9页 / 共13页
软件工程实验打印.docx_第10页
第10页 / 共13页
软件工程实验打印.docx_第11页
第11页 / 共13页
软件工程实验打印.docx_第12页
第12页 / 共13页
软件工程实验打印.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

软件工程实验打印.docx

《软件工程实验打印.docx》由会员分享,可在线阅读,更多相关《软件工程实验打印.docx(13页珍藏版)》请在冰点文库上搜索。

软件工程实验打印.docx

软件工程实验打印

usingSystem;

usingSystem.Collections.Generic;

usingSystem.Linq;

usingSystem.Text;

usingNUnit.Framework;

namespaceZhbTest1

{

[TestFixture]

publicclassClass1

{

[Test]

publicvoidAddTwoNumbers()

{

inta;

intb;

strings;

inti=0;

s=Console.ReadLine();

a=Convert.ToInt32(s);

while(i++<4)

{

if(a<=0)Console.WriteLine("错误:

输入范围错误");

if(a>0&&a<=10)

{b=a*15+20;

Console.WriteLine("预期结果:

"+b);

}

if(a>10&&a<100)

{b=a*20-5;

Console.WriteLine("预期结果:

"+b);

}

if(a>=100)

{b=a*100-200;

Console.WriteLine("预期结果:

"+b);

}

}

}

}

}

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2