美文网首页
2018-10-25作业1

2018-10-25作业1

作者: 零二幺五 | 来源:发表于2018-10-25 09:14 被阅读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();

    }

    }

    }

    相关文章

      网友评论

          本文标题:2018-10-25作业1

          本文链接:https://www.haomeiwen.com/subject/hkqqtqtx.html