STUDENT BIO DATA ( THROUGH STRUCTURE )
CODE:
#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<string>
using namespace std;
struct student
{
string
name;
int roll;
float GPA;
};
int main()
{
struct student s;
cout<<"Student Records"<<endl;
cout<<"Enter name of student : "<<endl;
getline(cin,s.name);
cout<<"Enter Roll# of student :"<<endl;
cin>>s.roll;
cout<<"Enter GPA of student : "<<endl;
cin>>s.GPA;
cout<<"Studnet name : "<<s.name<<endl;
cout<<"Student roll# : "<<s.roll<<endl;
cout<<"Student GPA : "<<s.GPA<<endl;
return 0;
}