u are almost there. the scanf function returns teh number of correctly read variables. in your while loop, u are testing:
while ((amt <= (float) 100) && (correctItemsRead == 1));
but actually it should be:
while ((amt <= (float) 100) && (correctItemsRead != 1));
when it returns 1, u want to break out of the loop, not the other way around.
Reputation Points: 47
Solved Threads: 2
Junior Poster in Training
Offline 77 posts
since Mar 2004