Ask user to enter three words. You can assume that each word has the maximum length of five characters.
#include <stdio.h>
int main() {
char word[6];
for (int i = 0; i < 3; i++) {
printf("Enter word: ");
scanf("%s", word);
printf("Read %s\n", word);
}
return 0;
}
Comments
Leave a comment