> 数学 >
编写一个C#控制台应用程序,根据半径,计算圆的周长和面积.半径r,周长circle,面积area,π为3.14 求步骤
人气:463 ℃ 时间:2020-06-23 18:02:07
解答
Console.WriteLine("请输入圆的半径");int r = int.Parse(Console.ReadLine());double circle = 2 * 3.14 * r;double area = 3.14 * r * r;Console.WriteLine("圆的周长为" + circle);Console.WriteLine("圆的面积为...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版