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
Dominic Morgan
your missing the opening curly brace in the for loop.
Your welcome
Lucas Wood
spell "avarage" correctly
- the guy with a history degree
Mason Hill
ur mom gay
Thomas Johnson
This and indent your code you fucking animal
Jacob Harris
He doesn't need one.
%d is for integers, %f or %g is for floats.
Kayden Evans
Take a look at your for loop dipshit.
Your braces aren't matching.
Learn how to copy shit off the internet correctly you dumbass.
Hunter Reyes
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
Jaxson Sanchez
Replace %d with %f since this is a floating point number. That’s the only problem. Good job!!
Joseph Collins
I FUCKING LOVE YOU
Nicholas Hernandez
AND I FUCKING LOVE U TOO
Christian Taylor
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
Brandon Gomez
What about my suggestion you fucking nigger
Carson Torres
>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
Joshua Myers
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.
Ryder Nelson
or remove both of them and save two precious bytes
Jeremiah Gomez
ur mom gay
Lucas Reed
thanks man, your welcome a retard become a little less autistic
Austin Sullivan
kek
Matthew Reed
thank you to all, i will still fail my C programming test in thurs but now i have a guaranteed +3 points
Ryder Jenkins
For a float, doesn't it need to be 0.0f or does it matter for C?
Jason Ortiz
In float a = 5.0; 5.0 is advanced to double and then trimmed to float, so it doesn't matter