Monday, July 12, 2010

Program to enter name and address by user and print it

#include
#include
void main()
{
char name[10],address[20];
clrscr();
cout<<"enter name ";
cin>>name;
cout<<"ur name is "<
cout<<"enter ur address ";
cin>>address;
cout<<"ur address is "<NOTE: the program will not work if u enter space in the address
getch();
}

No comments:

Post a Comment