Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def calc():
- #BTC profit calcuator
- btcv = float(input('Amount of BTC mined = '))
- btcp = float(input('Current BTC value = '))
- exp = float(input('Expenses for the day = '))
- day= btcv * btcp
- print('Value in USD daily = ', day)
- month = day * 30
- print('Value in USD monthy = ',month)
- v = exp - day
- j = v * 30
- b = day - exp
- k = b * 30
- if exp > day:
- print('Daily Losses USD = ', v)
- print('Monthy Losses USD = ', j)
- else:
- print('Daily Profits USD = ', b)
- print('Monthly Profits USD = ', k)
- calc()
- while True:
- again = input("Wanna perform the action again? y/n\n>>> ")
- if again == "y":
- calc()
- else:
- sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement