Using System; namespace Elmurodov. Baxriddin


Download 13.33 Kb.
Sana08.01.2022
Hajmi13.33 Kb.
#244518
Bog'liq
110-20 B


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();
}

}

}
Download 13.33 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling