How can I declare ’M’?
There will be 2 errors if I write int M
- syntax error before int
- ‘m’ undeclared (first use in this fuction)
Here’s the code-
Anyone can help out? thanksCode:float calculate_quiz() { float quiz, total=0; for (m=0; m<3; m++) { printf("\nQuiz %d <5M>: ", (m+1)); scanf("%f", &quiz[m]); total = total + quiz[m]; } return ((total/15)*10); }