All pastes #196891 Raw Edit

Mine

public c v1 · immutable
·published 2006-10-10 23:15 UTC
rendered paste body
//beginning of file#DEFINE E_MUFF 362 //calories#DEFINE HN_CHER 400 //calories#DEFINE PB_CC 20 //calories//main//func 1()//function 2 :        int breakfast (void)                                                                                                       /*Function 2*/        {                char selection_breakfast;                int calories_breakfast;                printf("Please enter your selection for breakfast:\n a)   English   Muffin with Egg, Cheese, and Bacon \n b)   Honey Nut Cheerios with Milk \n c)   Plain Bagel and Plain Cream Cheese\n");                scanf("%c", &selection_breakfast);               if (selection_breakfast=='a')               {                printf("You have selected \"English Muffin with Egg, Cheese, and Bacon\", 362 calories\n");                return E_MUFF;               }                     if (selection_breakfast=='b')               {                printf("You have selected \"Honey Nut Cheerios with Milk\", 180 calories\n");                return HN_CHER;               }                       if (selection_breakfast !='c' || selection_breakfast != 'b' || selection_breakfast != 'a')return -1;                         printf("You have selected \"Plain Bagel and Plain Cream Cheese\", 404 calories\n");                return PB_CC;        }