武汉装修公司排名,日系搭配,辽河聊吧
1、输入两个数,将两个数交换后输出
1 using system; 2 3 namespace exchangetwonumbers 4 { 5 class exchangetwonumbers 6 { 7 static void main(string[] args) 8 { 9 console.writeline("enter two integers and end with the enter key"); 10 console.write("please input a:"); 11 int a = convert.toint32(console.readline()); 12 console.write("please input b:"); 13 int b = convert.toint32(console.readline()); 14 15 a = a - b; 16 b = a + b; 17 a = b - a; 18 19 console.writeline("a is:{0}", a); 20 console.writeline("b is:{0}", b); 21 console.readkey(); 22 } 23 } 24 }
结果
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论