Pages

Thursday, 25 January 2018

Define Array in C Programming Language

#include <stdio.h>

int main() {
  int average;
  grades[0] = 80;
  grades[2] = 90;
  average = (grades[0] + grades[1] + grades[2]) / 3;
  printf("The average of the 3 grades is: %d", average);
  return 0;

}