Simple Program To Print Name And Age

#include<iostream>
#include<conio.h>


using namespace std;

void main()
{
char name[10];
int age;

cout<<"Enter Your Name: ";
cin>>name;

cout<<"Enter Your Age: ";
cin>>age;

cout<<name<<endl;
cout<<age<<endl;

getch();
}

No comments:

Post a Comment