Jacob
2014-07-19 16:28:51 UTC
Whenever I run the program it will act normally until I press enter for the location and then skip some questions. And then if it does work it won't print the final paragraph.
I don't know what to do :/
=====code
#include
int main(void)
{
int animal;
int name;
int loc;
int v1;
int num;
int obj1;
int adj;
int obj2;
int mood;
int v2;
printf(“Pick an animal. ==> “);
scanf(“%s”, &animal);
printf(“\nType up a name. ==> “);
scanf(“%s”, &name);
printf(“\nThink of a location. ==> “);
scanf(“%s”, &loc);
printf(“\nGive me a verb. ==> “);
scanf(“%s”, &v1);
printf(“\nChoose a number. ==> “);
scanf(“%d”, &num);
printf(“\nCome up with a random object. ==> “);
scanf(“%s”, &obj1);
printf(“\nWhat’s a good adjective? . ==> “);
scanf(“%s”, &adj);
printf(“\nI need another random object. ==> “);
scanf(“%s”, &obj2);
printf(“\nTell me what mood you’re in. ==> “);
scanf(“%s”, &mood);
printf(“\nFinally, give me another verb. ==> “);
scanf(“%s”, &v2);
printf(“\nOnce upon a time there was a/n %s named %s. They lived in %s and loved to %s with %d friends. But one day a giant %s fell from the sky and blew up %s’s %s %s. %s was so %s that they %sed all the way home.\n\n”, animal, name, loc, v1, num, obj1, name, adj, obj2, name, mood, v2);
getch();
}
=====code