Re: 166 - Making Change
Posted: Mon Oct 20, 2014 1:03 pm
Be sure about multiplication
cin>>toMake;
n = 100 * p;
sometimes it does not work as expected .
for input like
1 1 1 1 1 1 2.05
i found n = 204
So be sure of that

cin>>toMake;
n = 100 * p;
sometimes it does not work as expected .
for input like
1 1 1 1 1 1 2.05
i found n = 204
So be sure of that