Site icon T4Tutorials.com

 Show personal details program in C++(C plus Plus) 

 Show personal details program in C++(C plus Plus) 

In this latest tutorial, we will cover the program of showing the  personal details in C++(C plus Plus). 
// Your details
// Name,age,city,phon no and address
#include <iostream>
using namespace std;
int main()
{
char n[30],c[50],ad[100];
int a,p;
cout<<"Enter Your Name ";
cin>>n;
cout<<"Enter Your age ";
cin>>a;
cout<<"Enter Your City ";
cin>>c;
cout<<"Enter Your Phone NO ";
cin>>p;
cout<<"Enter Your Address ";
cin>>ad;
cout<<endl<<endl<<endl<<endl<<endl;
cout<<"Your Name is "<<n<<endl;
cout<<"Your Age is "<<a<<endl;
cout<<"Your City is "<<c<<endl;
cout<<"Your Phone No is "<<p<<endl;
cout<<"Your Address is "<<ad<<endl;
}

Output

 Show personal details program in C++(C plus Plus) 
Figure: Show personal details program in C++(C plus Plus)
Exit mobile version