Monday, 23 April 2018

Find area and circumference of a circle

Find area and circumference of a circle
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication35
{
    class Program
    {
        static void Main(string[] args)
        {
            float r;
            Console.WriteLine("enter the radius of circle:");
            r = float.Parse(Console.ReadLine());
            double area = ((3.14) * (r * r));
            double circumference = (2 * (3.14) * r);
            Console.Write("area of circle="+area+"\n"+"circumference of circle="+circumference);
            Console.ReadLine();
        }
    }
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

0 comments

Post a Comment