Working Coins Program without formatting

output is incorrect