Texnologiyalariva kommunikatsiyalarini rivojlantirish vazirligi


Download 26.38 Kb.
Sana17.06.2023
Hajmi26.38 Kb.
#1535861
Bog'liq
kamoliddin




O‘ZBEKISTON RESPUBLIKASI AXBOROT
TEXNOLOGIYALARIVA KOMMUNIKATSIYALARINI
RIVOJLANTIRISH VAZIRLIGI


MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT
TEXNOLOGIYALARI UNIVERSITETI SAMARQAND FILIAL

KOMPYUTER INJINERINGI “ FAKULTETI


AXBOROT TALIM” KAFEDRASI


MUSTAQIL ISH

Bajardi: Kompyuter injiniring
yo’nalishi 2-kurs talabasi
Islomov Kamoliddin

Tekshirdi: “Axborot talim”


kafedrasi o`qituvchisi Xolmatov O
__________________________





SAMARQAND – 2022

import math


a,b,c=map(eval,input().split())
x=1/2*(math.sqrt(2*c**2+2*b**2-a**2))
print("%.2f" % x)


INPUT:7 5 9
OUTPUT:6.38

class AddNumbers:


def __init__(self, firstNumber: int, secondNumber: int):
self.firstNumber = firstNumber
self.secondNumber = secondNumber

def add(self):


return self.firstNumber + self.secondNumber

def taqqosla(self):


return f"Ikki sonning kattasi {max(self.firstNumber, self.secondNumber)}"

son = AddNumbers(3000, 2000)


print(son.add())
print(son.taqqosla())
OUTPUT:
5000
Ikki sonning kattasi 3000
Download 26.38 Kb.

Do'stlaringiz bilan baham:




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