- #include<iostream>
- using namespace std;
- struct student
- {
- string name;
- int age;
- char gender;
- float weight;
- };
- int main()
- {
- student temari[5];
- cout<<"enter the student info "<<endl;
- for(int i=0;i<=3;i++)
- {
- cin>>temari[i].name;
- cin>>temari[i].age;
- }
- cout<<"the info of the students is "<<endl;
- for(int i=0;i<=2;i++)
- {
- cout<<temari[i].name<<endl;
- cout<<temari[i].age<<endl;
- }
- return 0;
- }
