#include <stdio.h>
#include <stdlib.h>
int main()
{
int libchoose = rand() % 10;
if (libchoose==0){
char verbpt[50];
char adj[50];
char verb[50];
char noun[50];
char verb2[50];
printf ("Verb, Present Tense: ");
scanf ("%s", verbpt);
printf ("Adjective: ");
scanf ("%s", adj);
printf ("Verb: ");
scanf ("%s", verb);
printf ("Noun: ");
scanf ("%s", noun);
printf ("Verb: ");
scanf ("%s", verb2);
//"Flying is easy. You just have to throw yourself at the ground and miss"-Douglas Adams
printf ("%s is %s. You just %s yourself at the %s and %s.", verbpt, adj, verb, noun, verb2);
}
else if (libchoose==1){
//"I must say[verb] I find television[noun] very educational[adj]. The minute somebody turns it on, I go to the library[noun2] and read a good[adj2] book[noun3]."-Groucho Marx
char noun[50];
char adj[50];
char noun2[50];
char adj2[50];
char noun3[50];
printf ("Noun: ");
scanf ("%s", noun);
printf ("Adjective: ");
scanf ("%s", adj);
printf ("Noun: ");
scanf ("%s", noun2);
printf ("Adjective: ");
scanf ("%s", adj2);
printf ("Noun: ");
scanf ("%s", noun3);
printf ("I must say I find %s very %s. The minute somebody turns it on, I go to the %s and read a %s %s", noun, adj, noun2, adj2, noun3);
}
else{
printf ("Puzzle %d is not a valid puzzle.\n", libchoose);
}
}