do you really write it like that, with no indentation? or is that a problem with the website? I can't tell what's what without looking at it for five minutes
and you don't
have to define SUM after main. you can just define it at the top where you already have the prototype of it. you only have to bother with those if you have two functions that need to call each other, and even then it doesn't need to be above main. some people prefer non-main functions to be below main, but personally I like main to be at the bottom
How do I fix that?
uh... by calling it in main
just a shot in the dark, but it looks like what you're probably
supposed to be doing is using SUM to find the average. so instead of
AVG=(NUM1+NUM2+NUM3+NUM4+NUM5)/5;you'd use
AVG = SUM(NUM1, NUM2, NUM3, NUM4, NUM5) / 5;also what's with all the caps? is your teacher telling you to do that?