V velvetred Forum Veteran Joined May 4, 2022 Posts 709 Solutions 18 Reaction 1,256 Points 837 May 10, 2022 #1 Medyo nahihirapan po ako
V velvetred Forum Veteran May 10, 2022 TS TS #3 PHC_Jayvee said: anong C? Click to expand... c language po
V velvetred Forum Veteran May 10, 2022 TS TS #5 lunantionio said: anong problem ba, dapat pinost mo na. Click to expand... ayan po C: #include <stdio.h> #define rSize 3 #define cSize 4 void accScores(int scores[rSize][cSize]){ int row, col; for(row = 0; row < rSize; row++){ printf("\nStudent %d:\n", row+1); for(col = 0; col < cSize; col++){ printf("Quiz %d: ", col+1); scanf("%d", &scores[row][col]); } } } void scoresDisplay(int scores[rSize][cSize]){ int row, col; for(row = 0; row < rSize; row++){ printf("\nStudent %d: \n", row+1); for(col = 0; col < cSize; col++){ printf("\nQuiz %d: %d\n", col+1, scores[row][col]); } } printf("\n"); } main(){ int scores[rSize][cSize]; int type; printf("Input the scores of 3 students in the 4 quizzes;"); accScores(scores); printf("Scores of all students:\n\n"); scoresDisplay(scores); } yung kulang nalang po yung following tasks: pati yung menu driven Attachments You do not have permission to view the full content of this post. Log in or register now. Last edited: May 10, 2022
lunantionio said: anong problem ba, dapat pinost mo na. Click to expand... ayan po C: #include <stdio.h> #define rSize 3 #define cSize 4 void accScores(int scores[rSize][cSize]){ int row, col; for(row = 0; row < rSize; row++){ printf("\nStudent %d:\n", row+1); for(col = 0; col < cSize; col++){ printf("Quiz %d: ", col+1); scanf("%d", &scores[row][col]); } } } void scoresDisplay(int scores[rSize][cSize]){ int row, col; for(row = 0; row < rSize; row++){ printf("\nStudent %d: \n", row+1); for(col = 0; col < cSize; col++){ printf("\nQuiz %d: %d\n", col+1, scores[row][col]); } } printf("\n"); } main(){ int scores[rSize][cSize]; int type; printf("Input the scores of 3 students in the 4 quizzes;"); accScores(scores); printf("Scores of all students:\n\n"); scoresDisplay(scores); } yung kulang nalang po yung following tasks: pati yung menu driven