#include<iostream.h>
#include<conio.h>
void main()
{
struct student
{
int rn;
float fees;
}st[10], *p;
int n,j,q=0;
clrscr();
cout<<"\nHow Many Students have Data : ";
cin>> n;
cout<<"\nEnter the data :";
for(p=st; p< st+n; p++)
{
q++;
cout<<"\nEnter the Roll No of "<<q<<" Student : ";
cin>>p->rn;
cout<<"\nEnter the Fee of "<<q<<" Student : ";
cin>>p->fees;
}
p=st;
cout<<"\nYour Entered Data is:";
q=0;
while(p< st+n)
{
q++;
cout<< "\nRoll No of "<<q<<" Student : "<< p->rn;
cout<< "\nFee of "<<q<<" Student is : "<< p->fees;
p++;
}
getch();
}