Answer to Question #184763 in C for jack

Question #184763

Ask user to enter three words. You can assume that each word has the maximum length of five characters. 


1
Expert's answer
2021-04-23T14:13:44-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS