using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _2._3._1
{
class Program
{
static void Main(string[] args)
{
double a, b, r;
r = 5;
a = Math.Pow(r, 2) *Math. PI;
b = 2 * r *Math. PI;
Console.WriteLine("圆的面值{0}",a);
Console.WriteLine("圆的周长{0}",b);
Console.Read();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _2._3._1
{
class Program
{
static void Main(string[] args)
{
double a, b, r;
r = 5;
a = Math.Pow(r, 2) *Math. PI;
b = 2 * r *Math. PI;
Console.WriteLine("圆的面值{0}",a);
Console.WriteLine("圆的周长{0}",b);
Console.Read();
}
}
}