Area of figures
Zdraveite ,programata mi e
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Areas
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("squad");
double s = double.Parse(Console.ReadLine());
s = s * s;
Console.WriteLine("{0:F3}",s);
Console.WriteLine("rectangle");
double a = double.Parse(Console.ReadLine());
double b = double.Parse(Console.ReadLine());
s = a * b;
Console.WriteLine("{0:F3}",s);
Console.WriteLine("circle");
double r = double.Parse(Console.ReadLine());
r = Math.PI * r * r;
Console.WriteLine("{0:F3}",r);
Console.WriteLine("triangle");
double d = double.Parse(Console.ReadLine());
double c = double.Parse(Console.ReadLine());
s = Math.Round(d * c / 2);
Console.WriteLine("{0:F3}",s);
{
}
}
}
}
V visua studio raboti ,no v judje ne . Please help