All pastes #196881 Raw Edit

Stuff

public c v1 · immutable
·published 2006-10-10 23:08 UTC
rendered paste body
#include <stdio.h>void star_line (void);int breakfast (void);int main (void){	int sum;	star_line();	breakfast();	sum = breakfast();	printf("%d", sum);	star_line();	return 0;}	void star_line (void)                                                                                                      /* Function 1*/	{		printf("********************************************************************************");	}	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");		calories_breakfast=362;		}			if (selection_breakfast=='b')		{		printf("You have selected \"Honey Nut Cheerios with Milk\", 180 calories\n");		calories_breakfast=180;		}			if (selection_breakfast=='c')		{		printf("You have selected \"Plain Bagel and Plain Cream Cheese\", 404 calories\n");		calories_breakfast=404;		}			scanf("%c", &selection_breakfast);		return calories_breakfast;	}