Question #241412

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.

Expert's answer

#include<iostream>
using namespace std;
class marks {
 public :
int a;
int b;
int c;

Setmarks()
}
LATEST TUTORIALS
APPROVED BY CLIENTS