Write a C++ program to prompt the user to input her/his name and print this name on the screen

Write a C++ program to prompt the user to input her/his name and print this name on the screen







#include<iostream>
using namespace std;
int main()

{

 char name[10];

 cout<<"Enter your name ";

 cin>>name;

 cout<<name;

}

Write a C++ program to prompt the user to input her/his name and print this name on the screen