chương trình 367. Tổng số điểm của tất cả N Học sinh cho M môn học sử dụng Cấu trúc lồng nhau
chương trình 367. Tổng số điểm của tất cả N Học sinh cho M môn học sử dụng Cấu trúc lồng nhau
#include #include struct Subject{ char subjectName[20][20]; int subjectMarks[10]; }; struct Student{ char name[20]; int total; struct Subject sub; }; main[] { int i,size,subjectSize,j; char tempSubName[20]; printf["Enter number of students\n"]; scanf["%d",&size]; printf["Enter number of Subjects\n"]; scanf["%d",&subjectSize]; struct Student s[size]; for[j=0;j