printf("What is your name? \n");
printf("Who are you going to marry? \n");
//scanf() stops when it sees a space, so no last names
printf("How many kids will you have? \n");
//ampersand needed for everything but arrays
printf("%s and %s are in love and will have %d babies", firstName, crush, numberOfBabies);
[source code] C Programming Tutorial - 11 - Getting Input with scanf
· August 4, 2014
Post a Reply
|Oldest Newest Rating|
· October 13, 2014
Hi bucky, can you show me how to make the program scan spaces?
This is what I did, but is not working.
· October 14, 2014
Hey buddy so this is how i would do it. User will have to enter firstName and lastName.
One of the most popular languages of all time.
|Bucky Roberts Administrator|