Question: C++ program that declares a structure to store the ID of the student and array of student marks (5 marks). It defines the structure
C++ program that declares a structure to store the ID of the student and array of student marks (5 marks). It defines the structure variable, input the values, and print the ID, marks, and the summation of marks : #include using namespace std; struct student int id; double marks[5]; } int main () { student s; double sum=0; cout < > s.id; for (int i=0; i
Step by Step Solution
3.49 Rating (149 Votes )
There are 3 Steps involved in it
1 include using namespace st... View full answer
Get step-by-step solutions from verified subject matter experts
