.#代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int r = 5;
double pi = 3.14;
double mj = pi * r * r;
double zc = 2 * pi * r;
Console.WriteLine("圆的半径是{0},圆的面积是{1},周长是{2}", r, mj, zc);
Console.ReadKey();
}
}
}
网友评论