using System;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double a;
float r;
Console.Write("\n Enter the radius of circule : ");
r = float.Parse(Console.ReadLine());
a = 3.14 * r * r;
Console.Write("\n Area of circle is : " + a);
Console.ReadLine();
}
}
}
Output

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double a;
float r;
Console.Write("\n Enter the radius of circule : ");
r = float.Parse(Console.ReadLine());
a = 3.14 * r * r;
Console.Write("\n Area of circle is : " + a);
Console.ReadLine();
}
}
}
Output
No comments:
Post a Comment