#include main() { int x; float y; char string[100]; /* * string input */ printf("Enter one word: "); scanf("%s", string); /* note there is no & before string */ printf("The word you entered was >>%s<<\n"); printf("Enter many words: "); fflush(stdin); scanf("%[^\n]", string); /* read up to a newline (multiple words) */ printf("The text you entered was >>%s<<\n"); }