Answer to Question #253587 in C++ for Mocking

Question #253587
Program that ask the name of students in class, their names and their gender,. Display the list of male and female gender
1
Expert's answer
2021-10-19T07:27:18-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS