This commit is contained in:
2025-12-11 18:01:56 +05:00
commit bfa7413f9c
38 changed files with 651 additions and 0 deletions

11
task_16.py Normal file
View File

@@ -0,0 +1,11 @@
n = int(input("Введите количество районов: "))
total_harvest = 0
for i in range(n):
print(f"\nРайон {i + 1}:")
area = float(input("Введите площадь (га): "))
yield_per_ha = float(input("Введите урожайность (ц/га): "))
total_harvest += area * yield_per_ha
print(f"\nВсего собрано пшеницы: {total_harvest:.1f} ц")