美文网首页
第七次作业3

第七次作业3

作者: zealot_bbc8 | 来源:发表于2018-11-11 19:45 被阅读0次

Console.WriteLine("输入年龄");stringstr_year = Console.ReadLine(); Console.WriteLine("输入始薪");stringstr_money = Console.ReadLine();try{intyear = Convert.ToInt32(str_year);doublemoney = Convert.ToInt32(str_money);doublemon = money;while(year <=65) { money *=1.05; mon += money; year++; } Console.WriteLine("你的总工资{0}",mon); }catch{ Console.WriteLine("格式输入错误"); } Console.ReadKey();

相关文章

网友评论

      本文标题:第七次作业3

      本文链接:https://www.haomeiwen.com/subject/uxlffqtx.html