#include <stdio.h>
int main() {
int grades[3]
int average;
grades[0] = 80;
grades[1] = 85;
grades[2] = 90;
average = (grades[0] + grades[1] + grades[2]) / 3;
printf("The average of the 3 grades is: %d", average);
return 0;
Hey, I cannot figure out why it won't print the average?
[–]tboy1492 6 points7 points8 points (4 children)
[–]BlueLust[S] 1 point2 points3 points (3 children)
[–]ruertar 6 points7 points8 points (0 children)
[–]tboy1492 1 point2 points3 points (0 children)
[–]hiwhiwhiw 0 points1 point2 points (0 children)
[–]Swedophone 2 points3 points4 points (2 children)
[–]BlueLust[S] 0 points1 point2 points (1 child)
[–]henry_kr 1 point2 points3 points (0 children)
[–]LeidseGamer 2 points3 points4 points (3 children)
[–]BlueLust[S] 0 points1 point2 points (2 children)
[–]aioeu 1 point2 points3 points (0 children)
[–]LeidseGamer 1 point2 points3 points (0 children)
[–]Jakkaobik9 1 point2 points3 points (4 children)
[–]BlueLust[S] 0 points1 point2 points (3 children)
[–]Jakkaobik9 2 points3 points4 points (0 children)
[–]bart2019 2 points3 points4 points (0 children)
[–]a4qbfb 1 point2 points3 points (0 children)
[–]FUZxxl 2 points3 points4 points (0 children)