Nice, looks pretty good. One correction to your formulas (I didn't read Tim's post #10 carefully):
At the end of your precent = ... lines, you always do (something - 1.0). You don't always want...
Type: Posts; User: anduril462
Nice, looks pretty good. One correction to your formulas (I didn't read Tim's post #10 carefully):
At the end of your precent = ... lines, you always do (something - 1.0). You don't always want...
Well, your formula is correct, and the numbers you plugged in are correct, and unless you had a typo on the calculator, your answer is correct. My intuition agrees, 45% is just a little less than...
We were all there at one point in our lives.
The short answer is because that's what the C standard says you must do (and argc is the only other parameter besides argv you can use*). More info is...
Your division is upside-down, and I have no idea where that j = .27 bit came from. Reread my second to last paragraph from my previous post. Hopefully it will be clear enough on second inspection....
int main instead of void main....check
return 0; at the end of main....check
descriptive variable names....check
defined constants instead of magic numbers....check
working on small parts at a...