Facebook
From gudgyo, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 80
  1. def etherum(gpu, gpuCost, profit, money, days, reinvest = True):
  2.  
  3.         print("{} befektetett penzzel {} nap elteltevel:".format(money, days))
  4.  
  5.         for _ in range(days):
  6.                 if reinvest:
  7.                         gpu += money/gpuCost
  8.                         money -= (money/gpuCost)*gpuCost
  9.  
  10.                 money+= gpu*profit
  11.  
  12.         print("{} db GPU-d van, es {} maradek penzed".format(gpu, money))
  13.  
  14.         millio = (gpu*gpuCost+money)/1000000.0
  15.  
  16.         print("GPU-kat {} Ft/db aron eladva ez {} millio Ft-ot jelent".format(gpuCost, millio))
  17.  
  18. etherum(1, 40000, 300, 1000000, 365)