Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- зад.3
- working_days=int(input())
- bike_price=float(input())
- total_money=0
- for day in range(1, working_days + 1):
- if day % 2 == 0:
- salary= 100
- else:
- salary= 150
- if day % 5 == 0:
- salary *= 0.8
- total_money += salary
- total_money -= 10 # wife's coffee money
- if total_money >= bike_price:
- print(f"Да, и ми останаха {total_money - bike_price} лева")
- else:
- print(f"Не, трябват ми още {bike_price - total_money} лева")
- зад.4 господине не я разбирам и не мога да я направя.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement