图片发自简书App
//#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int r = 5; double pi = 3.14; double s=r*r*pi; double c=2*pi*r; Console.WriteLine("面积:{0},周长:{1}", s, c); Console.ReadKey(); } } }
戴超宇