using System;
namespace yuanzhu
{
class Program
{
static void Main(string[] args)
{
double r;
double mianji;
double tiji;
double dimianji;
double h;
Console.WriteLine(“请输入半径”);
r = double.Parse(System.Console.ReadLine());
mianji = 2 * Math.PI * r;
Console.WriteLine(“圆柱的面积为{0:f1}”, mianji );
dimianji = Math.PI * r * r;
Console.WriteLine(“圆柱的底面积为{0:f1}”, dimianji );
Console.WriteLine(“请输入高”);
h = double.Parse(System.Console.ReadLine());
tiji = dimianji * h;
Console.WriteLine(“圆柱的体积为{0:f2}”, tiji);
}
}
}
using System;
namespace liu
{
class Program
{
static void Main(string[] args)
{
double r;//圆的半