#include<iostream.h>
#include<conio.h>
struct student{
int rollno;
int marks;
float avg;
char grade;};
void main()
{student s;
cout<<"enter roll no"<<endl;
cin>>s.rollno;
cout<<"enter marks"<<endl;
cin>>s.marks;
cout<<"enter average"<<endl;
cin>>s.avg;
cout<<"enter grade"<<endl;
cin>>s.grade;
cout<<s.rollno<<endl;
cout<<s.marks<<endl;
cout<<s.avg<<endl;
cout<<s.grade;
getch();
}
#include<conio.h>
struct student{
int rollno;
int marks;
float avg;
char grade;};
void main()
{student s;
cout<<"enter roll no"<<endl;
cin>>s.rollno;
cout<<"enter marks"<<endl;
cin>>s.marks;
cout<<"enter average"<<endl;
cin>>s.avg;
cout<<"enter grade"<<endl;
cin>>s.grade;
cout<<s.rollno<<endl;
cout<<s.marks<<endl;
cout<<s.avg<<endl;
cout<<s.grade;
getch();
}
0 comments:
Post a Comment