Monday, March 2, 2009

Exercise 2

#include
#include
void main()
{
clrscr();
char name[50],gender[10],status[10],religion[10];
printf("Enter name:"); gets(name);
printf("Enter gender: "); gets(gender);
printf("Enter status:"); gets(status); printf("Enter religion:");gets(religion);
printf("I'm %s, %s, %s, %s", name,gender,status,religion);

getch();
}

No comments:

Post a Comment