This commit is contained in:
2025-12-11 18:06:09 +05:00
parent bfa7413f9c
commit e98dd2f107
35 changed files with 0 additions and 0 deletions

13
operators_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("Перевозка невозможна")