2018-10-25作业1

2018-10-25  本文已影响0人  零二幺五

using System;

 using System.Collections.Generic;

using System.Linq;

using System.Text;

 namespace ConsoleApplication1

 {

class Program

{

static void Main(string[] args)

{

double pi = 3.14;

double r = 5;

double S = pi * r * r;

double Perimeter = pi * r * 2;

Console.WriteLine("圆的面积是{0}圆的周长是{1}", S,Perimeter );

Console.ReadKey();

}

}

}

上一篇下一篇

猜你喜欢

热点阅读