摘要:
staticvoidMain(string[]args){varn1=1.5;varn2=2.5;varn3=3.5;varn4=4.5;varn5=5.5;Console.WriteLine(Math.Round(n1));Console.WriteLine(Math.Round(n2));Console.WriteLine(Math.Round(n3));Console.WriteLine(Math.Round(n4));Console.WriteLine(Math.Round(n5));Console.Read(); }//输出结果: 2 2 4 4 6 (四舍五入也有个国际惯例,叫.. 阅读全文