#include <stdio.h>

struct menu

{

int num;

char name[20];

int calorie;

};

 

int main()

{

struct menu burger[4]={

{1,"cheese burger", 461},

{2,"fish burger", 431},

{3,"veggie burger", 420},

{4,"no burger", 0}

};

struct menu drink[4]={

{1,"soft drink", 130},

{2,"orange juice", 160},

{3,"milk", 118},

{4,"no drink", 0}

};

struct menu sideorder[4]={

{1,"fries",100},

{2,"baked potato", 57},

{3,"chef salad", 70},

{4,"no side order", 0}

};

struct menu dessert[4]={

{1,"apple pie", 167},

{2,"sundae", 266},

{3,"fruit cup", 75},

{4,"no dessert", 0}

};
int sum;
int a,b,c,d;
sum =   각 메뉴에서 하나는 골라서 더하는건데 어떻게 하나요?ㅠㅠ
printf("What do you want?");
scanf("%d,%d,%d,%d",&a,&b,&c,&d);
printf("\n");
printf("\n");
printf("Your total calorie count is %d\n",sum);
}