i cant' proceed to my SETMENU. why???

#include <stdio.h>
#include <math.h>

//Constant Variable
#define set_a 10.20
#define set_b 22.20
#define set_c 34.20
#define gov_tax 6
#define ser_tax 10

void displayMenu();
void setMenu();
void setCalc();
void voucher();
void receipt();
void exit();

int response, set;
char resp;
int ttl_a=0, ttl_b=0, ttl_c=0;
double sub_a=0, sub_b=0, sub_c=0, sub_set=0;
double sub_ttl=0, vou=0, end_vou=0;


int main()
{
printf("KLFC\n");

displayMenu();

while (response != 4)
{
switch (response)
{
case 1:
setMenu();
break;
case 2:
receipt();
break;
case 3:
exit();
break;
default:
printf("You can select 1, 2, or 3 only.\n");
}
displayMenu();
}

return 0;
}

void displayMenu()
{
printf("\n");
printf("1.Please select your COMBO SET choice\n");
printf("2.Receipt\n");
printf("3.Exit\n");

printf("Enter your selection > ");
scanf("%d", &response);
}

void setMenu()
{
printf("\n");
printf("\t=======\n");
printf("1.COMBO SET A 10.20 \n");
printf("2.COMBO SET B 22.20 \n");
printf("3.COMBO SET C 34.20 \n");
printf("4.Return to main menu\n");

printf("Enter your selection > ");
scanf("%d", &response);
}


void setCalc()
{
setMenu();

while(response != 4)
{
switch(response)
{
case 1:
printf("Enter amount of COMBO SET A > ");
scanf("%d", &set);
sub_a += set * set_a;
ttl_a += set;
break;
case 2:
printf("Enter amount of COMBO SET B > ");
scanf("%d", &set);
sub_b += set * set_b;
ttl_b += set;
break;
case 3:
printf("Enter amount of COMBO SET C > ");
scanf("%d", &set);
sub_c += set * set_c;
ttl_c += set;
break;
default:
printf("You can select 1, 2, 3 or 4 only.\n");
}
setMenu();
}
sub_set = sub_a + sub_b + sub_c;
}

void receipt()
{
printf("test");
scanf("%d",response);
}




void exit()
{
}
Put your code in [code][/code] tags, explain what it does, and what you want it to do.
Topic archived. No new replies allowed.