You are on page 1of 1

EXP7_3 #include<iostream.h> #include<conio.h> #include<string.

h> class student { public: float m1,m2,m3,per; char name[10]; student() { strcpy(name,"ABC"); } void accept() { cout<<"Enter 3 marks cin>>m1>>m2>>m3; }

";

void display() { cout<<"\nName:\t"<<name; per=(m1+m2+m3)/3; cout<<"\nPercentage:\t"<<per; } }m; void main() { clrscr(); m.accept(); m.display();

getch(); }

Page 1

Print to PDF without this message by purchasing novaPDF (http://www.novapdf.com/)