Reading and printing a string.

A user types a word and a number on a single line. Read them into the provided variables. Then print: word_number. End with newline. Example output if user entered: Amy 5
#include <stdio.h>

int main(void) {
 char userWord[20];
 int userNum;

scanf("%s", userWord);
 scanf("%d", &userNum);
 printf("%s_%d\n", userWord, userNum);

return 0;