#include<iostream.h> #include<conio.h> #include<stdio.h> //------------------------------ Student ------------------------------// struct student { char name[25]; char section; int rollno; int semester; int age; }; main( ) { clrscr(); const int n=2; student genius[n]; for(int i=0;i<n;i++) { cout<<\"\\n Enter the Bio-Data of the student no \"<<i+1<<\" is :\\n\"; cout<<\"\\t Enter the Name = \"; gets(genius[i].name); cout<<\"\\t Enter the Roll No = \"; cin>>genius[i].rollno; cout<<\"\\t Enter the Section = \"; cin>>genius[i].section; cout<<\"\\t Enter the Semester = \"; cin>>genius[i].semester; cout<<\"\\t Enter the Age = \"; cin>>genius[i].age; } clrscr(); for(int j=0;j<n;j++) { cout<<\"\\n The Bio-Data of the student no \"<<j+1<<\" is :\\n\"; cout<<\"\\t Name = \"<<genius[j].name<<endl; cout<<\"\\t Roll No = \"<<genius[j].rollno<<endl; cout<<\"\\t Section = \"<<genius[j].section<<endl; cout<<\"\\t Semester = \"<<genius[j].semester<<endl; cout<<\"\\t Age = \"<<genius[j].age<<endl; } getch(); return 0; }