# Huzuridagi fiskal institut

 Sana 23.03.2023 Hajmi 33.44 Kb. #1287615
Bog'liq
Yusupov Azimjon SST-02-22

O‘ZBEKISTON RESPUBLIKASI SOLIQ QO‘MITASI

HUZURIDAGI FISKAL INSTITUT
Soliqlar va Soliqqa tortish” fakulteti
“Iqtisodiyotda dasturlash” fanidan
№1 - laboratoriya ishi

Bajardi:

SST_02-22 talabasi
Yusupov Azimjon
Qabul qildi:
Sotvoldiyev.D

### 18-VARIYANT

1-topshiriq. Berilgan sonlarning maksimum va minimumini topish dasturini tuzing. Bu misolni dasturini tuzishda ro’yhatlarni ishlatish mumkin emas. Sonlar klaviaturadan to 0 kiritilguncha qabul qilinishi kerak.
maximum = 0
minimum = 0
while True:
num = int(input("raqam kiring: "))
if num == 0:
break
if num > maximum:
maximum = num
if minimum == 0 or num < minimum:
minimum = num
print("Maksimal son", maximum)
print("Minimum son", minimum)

2-topshiriq.Hisoblash dasturini tuzing.

import math
x=int(input("x ning qiymatini kiriting :"))
y1=2*x**5+5*x**3
y2=3*x**0-2*x
y3=3*(math.sin(x)**4)+4
if x>2:
print(y1)
elif -4<=x<=2:
print (y2)
elif x<4:
print(y3)
3-Topshiriq. «Elementlar soni maksimalga teng "( while sikli)
Topshiriq sharti
Ketma -ketlik natural sonlardan iborat va 0 raqami bilan tugaydi. Bu ketma -ketlikning nechta elementi uning eng katta elementiga tengligini aniqlang.

list=[]
while True:

num = int(input("Enter a number: "))
if num == 0:
break
else:
list.append(num)
total = sum(list)
maximum = max(list)
count = 0
for i in list:
if i==maximum:
count+=1
print("list dagi maksimal son:", maximum)
print("maksimal songa teng bolgan elementlar soni:", count)