Answers for "multiple words C++ in same"

C++
2

multiple words C++ in same

#include <iostream>
#include <string>
using namespace std;
int main()
{
    string name[6];
    cout << "\nEnter your name : ";
    for(int i = 0; i < 6; i++)
    {
        getline(cin, name[i]);
    }
    for(int i = 0; i < 6; i++)
    {
        cout << "\nYou entered : " << name[i];
    }
    return 0;
}
Posted by: Guest on June-24-2020

Code answers related to "multiple words C++ in same"

Browse Popular Code Answers by Language