I downright fucking this my C code programin is fucking hacked because im trying to run this code and it keeps spitting...

i downright fucking this my C code programin is fucking hacked because im trying to run this code and it keeps spitting out random fucking huge ass numbers and im so fuckign pissed

can someone help me identify the errors? please dont re write the entire code, i just want to know what part of my code is wrong

your missing the opening curly brace in the for loop.

Your welcome

spell "avarage" correctly

- the guy with a history degree

ur mom gay

This and indent your code you fucking animal

He doesn't need one.

%d is for integers, %f or %g is for floats.

Take a look at your for loop dipshit.

Your braces aren't matching.

Learn how to copy shit off the internet correctly you dumbass.

no he's not. he only wants to run the line after the for statement in the loop, which is what is going to happen in this case YOU FUCKING RETARD

op use %f and learn how to rtfm

Replace %d with %f since this is a floating point number. That’s the only problem. Good job!!

I FUCKING LOVE YOU

AND I FUCKING LOVE U TOO

ok thank u the 2 guys that helped, yes i needed {} for the for loop and i needed to use %f for float instead of %d int . here is correct code

What about my suggestion you fucking nigger

>yes i needed {} for the for loop
no u didnt the c standard doesn't car if it's just a one liner

for(...) shit;
and
for(...)
shit;
and
for(...){shit;}

are all the same

You don't need {} if the loop body has only one line. Same with if-else.

for (int i = 0; i < N; i++)
....doSmth();

is perfectly fine.

or remove both of them and save two precious bytes

ur mom gay

thanks man, your welcome a retard become a little less autistic

kek

thank you to all, i will still fail my C programming test in thurs but now i have a guaranteed +3 points

For a float, doesn't it need to be 0.0f or does it matter for C?

In
float a = 5.0;
5.0 is advanced to double and then trimmed to float, so it doesn't matter