void FunctionChoice()
{
int index = 0, flag = 0;
int x, y, z;
while(flag != 1)
{
system("cls");
printf("------Menu------\n");
printf("0. Exit\n");
printf("1. jiafa\n");
printf("2. jiafa\n");
// more function...
printf("\n\nEnter x and y : ");
scanf("%d %d", &x, &y);
printf("\n\nChoose function : ");
scanf("%d", &index);
switch(index)
{
case 0:
flag = 1;
break;
case 1:
z = jia(x, y);
break;
case 2:
z = jian(x, y);
break;
// more...
}
printf("\n\nz = %d\n\n", z);
getchar();
}
}