ulvis.paste.net

Paste Search Dynamic
Recent pastes
average of the grades is
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int grades[3];
  5. grades[0]=80;
  6. grades[1]=85;
  7. grades[2]=90;
  8. int average;
  9. average=(grades[0]+grades[1]+grades[2])/3;
  10. printf("The average of the grades is %d",average);
  11.         return 0;
  12. }
  13.  
Parsed in 0.003 seconds