- #include<iostream>
- using namespace std;
- struct student
- {
- string name;
- int age;
- char gender;
- float weight;
- };
- int main()
- {
- student temari[2];
- for(int i=0;i<=1;i++)
- {
- cout<<"Ente the info about a student "<<endl;
- cin>>temari[i].name;
- cin>>temari[i].age;
- cin>>temari[i].gender;
- cin>>temari[i].weight;
- }
- cout<<temari[0].name;
- }
