Void
February 28, 2008#include
#include
void menu();
void first();
void second();
void third();
main()
{
int choice;
menu();
scanf(”%d”,&choice);
if(choice == 1){
first();
}
if(choice == 2){
second();
}
if(choice == 3){
third();
}
getch();
}
void menu(){
printf(”[1]First Choice\n[2]Second Choice\n[3]Third Choice\n”);
}
void first(){
int num;
printf(”You Have Chosen First Choice.\n”);
printf(”Enter Num: “);
scanf(”%d”,&num);
printf(”%d is the number you’ve entered.”,num);
}
void second(){
char name[55];
printf(”You Have Chosen Second Choice.\n”);
printf(”Enter Name”);
scanf(”%s”,&name);
printf(”%s is your name.” ,name);
}
void third(){
printf(”You Have Chosen third Choice.\n”);
char address[55];
printf(”\nYou Have Chosen Second Choice.”);
printf(”\nEnter Address”);
scanf(”%s”,&address);
printf(”%s is your address.”,address);
}
