Print user Name in C++

The program will asked user to enter his full name but welcome the person with first name or sure name.

Source Code

#include<iostream>
using namespace std;
int main ()
{
 cout<<"\t \t\ t LEP Tutorials \n \n \n";
 string name;
 cout<<"Enter Your Name : ";
 cin>>name;
 cout<<endl<<endl;
 cout<<"Hi ! "<<name<<" Welcome to LEP.\n ";
 return 0;
}

Output of the Program

Print user Name in C++

Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment