Write a class marks with three data members to store three marks. Write three
member functions, set_marks() to input marks, sum() to calculate and return the sum
and avg() to calculate and return average marks.
1
Expert's answer
2021-09-24T00:03:54-0400
#include<iostream>
using namespace std;
class marks {
public :
int a;
int b;
int c;
Setmarks()
}
Comments
Leave a comment