/*
MADLIB.C Source
Written by Jeremy Anderson
Only 1 word per prompt or your second word will be the next entry.
*/
#include <stdio.h>
void main()
{
char one[20];
char two[20];
char three[20];
char four[20];
char five[20];
char six[20];
char seven[20];
char eight[20];
printf("MADLIB version 1.0\n");
printf("Only 1 word per prompt or your second word will be the next entry\n\n");
printf("Enter a house hold item\n> ");
scanf("%s",&one);
printf("\nEnter the name of a country\n> ");
scanf("%s",&two);
printf("\nEnter a name\n> ");
scanf("%s",&three);
printf("\nEnter a funny job\n> ");
scanf("%s",&four);
printf("\nEnter a object that can we used as a weapon\n> ");
scanf("%s",&five);
printf("\nEnter a pet name\n> ");
scanf("%s",&six);
printf("\nEnter a body part name\n> ");
scanf("%s",&seven);
printf("\nEnter your most recently bought video game\n> ");
scanf("%s",&eight);
printf("Once apon a time, a brave %s set out on a quest across %s. \nBy his side was his good friend %s.\nTogether they slew the evil %s with a large %s, \nand recovered their lost pet %s. Following this, they sold \ntheir %s's for money, bought %s, and played the night away.\nThe End.",one,two,three,four,five,six,seven,eight);
printf("\n\nsay goodbye to leave!");
scanf("%s",&one);
}
Tommorow im going to learn If Else Goto so I can program a small text adventure, woot!
EDIT: The last part is formated weird due to me not wanting to make your windows scroll 3 pages sideways.
Stay away from goto as you shouldn't need it :P.