Showing posts with label find average of 2 better marks. Show all posts
Showing posts with label find average of 2 better marks. Show all posts

Wednesday, January 5, 2011

c++ program to read STUDENT details and calculate average of 2 better marks for each student


#include
#include
using namespace std;


class student
{
private: char name[20];
int usn;
int m1,m2,m3;
float avg;
public: void read();
void show();
float average();
};