Very good. You're doing well. Sometimes you do want the thing before the loop as well, but in thise case you can get away with just one. Notice that the last thing in the loop is the same a the thing...
Type: Posts; User: iMalc
Very good. You're doing well. Sometimes you do want the thing before the loop as well, but in thise case you can get away with just one. Notice that the last thing in the loop is the same a the thing...
In one of your scanf's you are correctly using %d and in the rest you are incorrectly usinf %f. That's probably the main issue.
Note that you are using different data types for accum and num where...