Write a program that prompts the user for a sequence of words separated by one or more spaces, where each word is a sequence of alpha-numeric characters. You can assume that the text string entered is no more than 80 characters long, and each word is no more than 20 characters long. Use the fgets() command in stdio.h to read the input text string. For example, we can declare a char array char sentence[81]; then use fgets(sentence,81,stdin); to read in up to 80 characters from the standard input stdin(i.e. keyboard input) into the character array sentence[], which will also insert a null character (string termination character) at the end of the array; this is why the array needs to be one byte longer than the entered text. Your program should print the words out in reverse order, exactly as entered with exactly one space between each word. You can assume there are no punctuation marks or control characters entered. Your program should be named reverse_words.c, and your output should match exactly the output shown for the example below.
$ ./reverse_words Enter a sentence (up to 80 characters): The quick brown fox jumped over the lazy dog
dog lazy the over jumped fox brown quick The $