I cannot seem to get my program to compile correctly.
The error codes I am receiving are:
"ISO C90 forbids mixed declarations and code"(lines 31,33,35
and also:
"Invalid operands to binary %"(lines 33,35)
the following lines are
30. [*gallons=usercups/GAL;]
31. [float remgal=usercups%GAL;]
32. [*quarts=remgal/QRT;]
33. [float remquart=quarts%QRT;]
34. [*pints=remquart/PNT;]
35. [float rempint=pints%PNT;]
36. [*cups=rempint;]
GAL, QRT, and PNT are defined before any function is started.
Please help me understand what I am doing wrong.