a man goes to shopkeeper and says that if u give me as much as i have , i will spend rs . 10 / - on ur shop . shopkeeper agrees and man moves to another shopkeeper ans asked same . at 3 rd shop after all the transaction , he was left with no money . find the initial amount with the man
n0 = 10.0
n1 = 3.0
t0 = n0 / 2.0
t1 = n0 + t0
t2 = t1 / 2.0
t3 = n0 + t2
answer = t3 / 2.0
print(answer)