ss_blog_claim=764af2e4183cd5f1aff30b9e7db87aa1

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);
}

Comments »

The URI to TrackBack this entry is: http://uber.blogsome.com/2008/02/28/void/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.