Write a program to display your name address and contact number in c++
Answers
Answered by
0
Answer:
include <iostream>
using namespace std;
#define MAX_LENGTH 100
int main()
{
char name[MAX_LENGTH]={0};
int age;
cout<<"Enter name of the person: ";
cin.getline(name,MAX_LENGTH);
cout<<"Enter age: ";
cin>>age;
cout<<"Name: "<<name<<endl;
cout<<"Age: "<<age<<endl;
return 0;
}
Output
Enter name of the person: Vanka Manikanth
Enter age: 25
Name: Vanka Manikanth
Age: 25
Explanation:
Similar questions
Math,
5 months ago
Economy,
5 months ago
Social Sciences,
11 months ago
History,
11 months ago
Geography,
1 year ago