| 1 | #include <stdio.h> |
| 2 | |
| 3 | int main(){ |
| 4 | int marks[5]; |
| 5 | |
| 6 | printf("Enter marks of 5 students\n"); |
| 7 | |
| 8 | // scanf("%d", &marks[0]); |
| 9 | // scanf("%d", &marks[1]); |
| 10 | // scanf("%d", &marks[2]); |
| 11 | // scanf("%d", &marks[3]); |
| 12 | // scanf("%d", &marks[4]); |
| 13 | for (int i = 0; i < 5; i++) |
| 14 | { |
| 15 | scanf("%d", &marks[i]); |
| 16 | } |
| 17 | |
| 18 | for (int i = 0; i < 5; i++) |
| 19 | { |
| 20 | printf("The value of marks at index %d is %d\n", i, marks[i]); |
| 21 | } |
| 22 | |
| 23 | |
| 24 | return 0; |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected