- #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<<"the info of the student is "<<endl;
- cout<<temari[i].name<<endl;
- cout<<temari[i].age<<endl;
- cout<<temari[i].gender<<endl;
- cout<<temari[i].weight<<endl;
- cout<<endl;
- }
- }
