Saturday, 12 December 2015

Write a programe that input name from user with spaces and display on screen.

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{string n;
cout<<"enter your name";
getline(cin,n);
cout<<"your name is"<<n;
 getch();

}

No comments:

Post a Comment