Question requirement: Write a function to print the Student Score. The array contains three student data records, each of which includes num, name, score [3]. input these records using the main function, enter the student ID and output the student records of the student ID.
# Include <stdio. h> <br/> struct student <br/>{< br/> int num; <br/> char name [10]; // put the student's name <br/> int score [3]; // you can store the scores of the three subjects. <br/>} STU [3]; <br/> void main () <br/> {<br/> int I, j, X; <br/> for (I = 0; I <3; I ++) <br/>{< br/> printf ("Enter student ID/N"); <br/> scanf ("% d ", & STU [I]. num); <br/> printf ("Enter Student name/N"); <br/> scanf ("% s", STU [I]. name); <br/> printf ("Number of students, score, and score/N"); <br/> for (j = 0; j <3; j ++) <br/>{< br/> scanf ("% d", & STU [I]. score [J]); <br/>}< br/> printf ("Enter the student ID to output the scores of the three courses/N "); <br/> scanf ("% d", & X); <br/> printf ("student ID/T name/T mathematics/T physics/T chemistry/N "); <br/> for (I = 0; I <3; I ++) <br/> {<br/> If (STU [I]. num = x) <br/>{< br/> printf ("% d/T % S/T % d/N ", STU [I]. num, STU [I]. name, STU [I]. score [0], STU [I]. score [1], STU [I]. score [2]); <br/> break; <br/>}< br/>}