Answer to Question #263416 in C for darshan

Question #263416

Computer Programming teacher conducts test for 20 marks for 10 students. Teacher wants to know the average marks scored by the students.


1
Expert's answer
2021-11-09T11:50:47-0500
#include <stdio.h>

int main() {
  int marks[10];
  printf("Enter students' marks");
  for (int i=0; i<10; i++)
    scanf("%d", &marks[i]);
  int total = 0;
  for (int i=0; i<10; i++)
    total += marks[i];
  printf("avarage mark: %f", 0.1 * total);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS