PROGRAMMING:C programming experiment 5-7 array pointer as function parameter
Array pointer as function parameter
Enter the scores of M students (up to 30) and N courses (up to 5), and then calculate and print the total score and average score of each course for each student. Where the values of M and N are entered by the user from the keyboard.
###Input format:
The input sequence is as follows:
```
Number of students m number of courses n
Student 1 course 1 score student 1 course 2 score... Student 1 course n score
Student 2 course 1 score student 2 course 2 score... Student 2 course n score
...
Student m course 1 score student m course 2 score... Student m course n score
```
###Output format:
Total score of each student (integer) average score (real number, 1 decimal place reserved)
###Input example:
Here is a set of inputs. For example:
```in
2 3
61 62 70
75 82 90
```
###Output example:
The corresponding output is given here. For example:
```out
193 64.3
247 82.3
```
answer:If there is no answer, please comment
Enter the scores of M students (up to 30) and N courses (up to 5), and then calculate and print the total score and average score of each course for each student. Where the values of M and N are entered by the user from the keyboard.
###Input format:
The input sequence is as follows:
```
Number of students m number of courses n
Student 1 course 1 score student 1 course 2 score... Student 1 course n score
Student 2 course 1 score student 2 course 2 score... Student 2 course n score
...
Student m course 1 score student m course 2 score... Student m course n score
```
###Output format:
Total score of each student (integer) average score (real number, 1 decimal place reserved)
###Input example:
Here is a set of inputs. For example:
```in
2 3
61 62 70
75 82 90
```
###Output example:
The corresponding output is given here. For example:
```out
193 64.3
247 82.3
```
answer:If there is no answer, please comment