2d array

hey everyone,
am facing a problem solving this when i enter 2 inputs it show 4
please help me how to solve it!!

This is the question:
A class of ‘n’ students takes an examination in ‘m’ courses. Write a program to read the marks obtained by each student in various courses and to compute and print the total marks obtained by each of them.
Sample Input/Output:
Enter number of students and courses
2 6
Enter Student ID: 32569
Enter marks of 6 courses for Student ID 32569
81 75 83 45 61 59
TOTAL MARKS=404
Enter Student ID: 41126
Enter marks of 6 courses for Student ID 41126
51 49 55 47 65 41
TOTAL MARKS=308
Where is your code?
Topic archived. No new replies allowed.