Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
337 B
3
Indexable
Never
init=693.0
curr=init
auksisi=2
mult=2.0
bet=auksisi
i=0
while(curr-bet>=0):
    curr-=bet
    profit=mult*bet
    loss=init-curr
    print("Iteration:" , i, "  Curr: " , curr, "  mult: " , mult, "  bet: " , bet, " Profit: " ,profit , " Loss: ", loss, " Difference: ", profit-loss)
    mult+=auksisi
    bet+=auksisi
    i+=1