Problem is at
pennies = (int)(amount / 0.01);
if you want in INT you will always have answer in 0; so you cant calculate pennies.
so you have to change it to..
pennies = (amount / 0.01);...
Type: Posts; User: umairsario; Keyword(s):
Problem is at
pennies = (int)(amount / 0.01);
if you want in INT you will always have answer in 0; so you cant calculate pennies.
so you have to change it to..
pennies = (amount / 0.01);...