#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>
using namespace std;
int main()
{
int size;
char name [20];
char gender[20];
cout<<"Enter the number of students: ";
cin>>size;
for(int i=0;i<size;i++)
{
cin.getline (name, 20);
cout<<"\n name : ";
cin.getline (gender, 20);
cout<<"\n gender: ";
}
return 0;
}
Comments
Leave a comment