Try this one, ihope this will help much!!!
Code:
#include<stdio.h>
main()
{
char b;//variable for loop to be test
int a;//variable for choice
do
{
statement seq;//write your menus here!!
printf("\n\nenter choice:");//ask for the user to choose one of your menu
scanf("%d",&a);
switch(a)
{
case 1:
{
statement seq;
break;
}
case 2:
{
statement seq;
break;
}
defeult:
{
printf("\n\ninvalid choice!!!");//tells the user that they enter invalid choice from the menu
}
}//end of switch
printf("\nDo you want to try another?\ninput y if yes:");//ask the user if he/she wants to try another
scanf("%s",&b);//addressing variable to be test, i used %s because string is much better to use than the character
}while(b=='y'||b=='Y');
return 0;
}//end of main block!!