Skip to content
Snippets Groups Projects
19.py 590 B
Newer Older
hacker717's avatar
hacker717 committed
name, cost, weight, mon = input(), int(input()), int(input()), int(input())
print("=" * 16, "Чек", "=" * 16, sep="")
print("Товар:", " " * (29 - len(str(name))), name, sep="")
print("Цена:", " " * (19 - len(str(weight)) - len(str(cost))), f"{weight}кг * {cost}руб/кг", sep="")
print("Итого:", " " * (26 - len(str(weight * cost))), f"{weight * cost}руб", sep="")
print("Внесено:", " " * (24 - len(str(mon))), f"{mon}руб", sep="")
print("Сдача:", " " * (26 - len(str(mon - (weight * cost)))), f"{mon - (weight * cost)}руб", sep="")
print("=" * 35)