I wrote my program this way:
Code:
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int choice;
printf("Recipe List\n");
printf("1) Meat Balls\n");
printf("2) Curry\n");
printf("3) Steak\n");
printf("4) Vegetable Stew\n\n");
printf("Enter No. of Choice:");
scanf("%d",&choice")
if (choice==1)
{
clrscr();
int wouldyoulike
printf("Meatballs Ingredients\n");
printf("Would you like to see our other recipes? (1) Yes (2) No");
scanf("%d",&wouldyoulike);
Okay, so let's stop here. The monitor yould output this like:
Code:
Recipe List
1) Meat Balls
2) Curry
3) Steak
4) Vegetable Stew
Choice:_
If the user input 1, this will happen:
Code:
Meat Balls Ingredients:
Would you like to see our other recipes? (1) Yes (2) No _
Now, the question is: If the user input '1', how will I return to my program's "home page" which is
Code:
Recipe List
1) Meat Balls
2) Curry
3) Steak
4) Vegetable Stew
Choice:_