2018-11-07作业3

2018-12-27  本文已影响0人  零二幺五

Console.WriteLine("本金"); string str_p=Console.ReadLine(); int p=Convert.ToInt32(str_p); Console.WriteLine("年利率"); string str_r=Console.ReadLine(); int r=Convert.ToInt32(str_r); Console.WriteLine("年数"); string str_n=Console.ReadLine(); int n=Convert.ToInt32(str_n); Console.WriteLine("总金"); int a=p*(1+r)*n; Console.WriteLine (a); Console.ReadKey();

上一篇 下一篇

猜你喜欢

热点阅读