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