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

13
task_15.py Normal file
View File

@@ -0,0 +1,13 @@
p = float(input("Введите грузоподъемность грузовика (кг): "))
n = int(input("Введите количество предметов: "))
total_weight = 0
for i in range(n):
weight = float(input(f"Введите массу предмета {i + 1} (кг): "))
total_weight += weight
if total_weight <= p:
print("Перевозка возможна")
else:
print("Перевозка невозможна")