Wednesday, 28 January 2015

Print user Name in C++

Structure of the Problem Requirements

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 it Please
asad

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

0 comments:

Post a Comment