猿问
回到首页
个人中心
反馈问题
注册登录
下载APP
首页
课程
实战
体系课
手记
专栏
慕课教程
这个题目怎么做、麻烦把代码写出来
实现比较任意两个整数、对较大的一个自加1、较小的一个自减1、并输出这两个数
袁sir_
浏览 1526
回答 2
2回答
闷a
double x,y; Console.WriteLine("请输入任意俩个数字"); x =Convert.ToDouble(Console.ReadLine()); y =Convert.ToDouble( Console.ReadLine()); if (x > y) { x += 1; y -= 1; Console.WriteLine("{0}{1}", x, y); } else if (x < y) { x -= 1; y += 1; Console.WriteLine("{0} {1}", x, y); } else { Console.WriteLine("您输入的两个数字一样大!!!"); }
3
0
0
慕瓜9220888
ZHTHJQNGTBMYIKYOBELTFVEPJGEPNWYKANQBJBOJZFFCPWBDYERAKHARUNZMPCGPUMYUUAXGVRGPERURHEWSYLYMKUUMKEHRVPTTJYUGPWZMKOLNTGMGZOZBUCFSBYCKZIERUAWXZDTJWAOIKIEWYYLOVXINZEYLYBSGPKGJMPGDSEWILBBIGBXZDTTCZPGEQWJMCTFUWEAXGTADIKDPIFIESQCONDGWNYQSYGMQWYBWBAWPGTLYGMHVILVRUPRKFIPZMNFRQPFOLVYJYVRKNKHBVIHDGZDZXAPOKHQXULPBVUKLBENIAAWPMPTCKAJFTRUYUPLAPFSEHHMOAXXJGZXIUWQHQXEQYZLKXHNHZTZXNQNQZUWHKFVSFIFONTWRLPQGONCBYNWMRVHQVIBIPDLVKCGJMJONMFRNKIYEGKQMZTXLQBKKCEKXKUCGFHUAXMTYJFJWJMZFUWYQDKFIOMYKWWBRIKPAHDQTGOJXTMIIYGDUZYNKUHUBESYGJGQUHIXZLDQTGQYMMYDXQNAGEQSKXXKXPKTQCFCVZYFHKZIMMFQLHNYDGQNYJXTFZVSMJHJWIIIIYSBRGZZCZIUYKFERRRRFAMOANSFSFKWSNXAHAWNDFRYHBOIQCHDDGDJCNSBDQDKDZOGLHHOUHGRVRTQNWDYDLVRYLLKWAZFKXQDGLUMYEREVIPDMYDKPSVDSHCEYLREVNCYXTGXEGKDCYVELYDKDYXRAHXOSHDFSVCLCEWDSCCILUODZRUUXHJEQOURKRKIOQCEHBHVQRUAJHOBEBSYLTQLSVUCETOBVBVNHXJLKXAHLVXZVSEBEQOMRJTAQQNLNPNGJWALXVOEHICGOSWLNREANJBDIBAHEKQUEDIVIFSWBTVNAKNTMQCYAKHOLUZRNSTGLKWOEEDNRVJDIQSEZDDGJORMFLPCYCNMRAFCZQXFEPVFVOLAFHCISVBYALNSUXKUBGBNSVIIVCPNPGPZFSPTSIEJDQNGOWSEDEBHIEUDEZDKHOVAAMEHXXXSHJFTMSMJKBNZOVSVIDJZIUGAXCNLATPDAHEHJODWFJCFSQSWFLYSYRVODVICYCSXEQISFEIRMYRDTUHYSXJEXUUHUHZZMOLOBOVOXMDTWTMAVZLWNNQQEWILHUXSDZEQIOKOUHFDVVHMFFGMKZEQHUHKZKWYKHHSICDAVEEHEHUAWSKNUQNWBWYBHKRERPRDIMZIZZVBNFVYIPPXJLXKNIFNZOQCVSSHZVYDCPMIGRMIXOLRLRLDIKWGWJMRHMVPMLILHSNZVVVVVBPOLXKEAXHIKMUBETWWODVBOXBXQEZVEENAULGBKELOLYSWFNZMHEEBWLYAARBMOMOAUKXUXOCSNJMJSRSGCBHUKGHZOMVHDHXKJOJVTKXAWAVXGQDNOBTRVKMPZCIVWKPOSIBYQVRMIREBVYTVIOUEREBFONGJCJMUFIKXUHEXINCCJZCPWVTOQGGDGWMDSLXTNSVGKCOXDXGLGEACEXERXIXZIFSLISFQSBNKFSYSGYATWEEOSNKWCFSSVCOHQYLHOWLNGCEZDGNGIYHYYLRLOSJBVCSVBFNQOAEKNGZORQTEPJNHMBDSCIEARPOQGAJPJ
0
0
0
qq_一马飞门
int a = 6; int b = 7; if (a >= b) ; else Console.WriteLine(b+ 1); Console.WriteLine(a - 1);
0
0
0
打开App,查看更多内容
随时随地看视频
慕课网APP
相关分类
C#
typedef入门问题
1 回答
继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续