using System;
namespace Elmurodov.Baxriddin
{
class Talaba
{
public int a;
public int b;
public int d;
public int S;
public int R;
void GetInfo()
{
double d = Math.Sqrt(a * a + b * b);
double S = a * b;
double R = (Math.Sqrt(a*a+b*b)) / 2;
Console.Write($"Katta tomon:{a}\n Kichkina tomon:{b}\n Dioganal:{d}\n Yuza:{S}\n Radius:{R}");
}
static void Main(string[] args)
{
Talaba T = new Talaba();
Console.Write("a tomonni kiriting a=");
T.a = Convert.ToInt32(Console.ReadLine());
Console.Write("b tomonni kiriting b=");
T.b = Convert.ToInt32(Console.ReadLine());
T.GetInfo();
}
}
}
Do'stlaringiz bilan baham: |