Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C. Write a C program that prompts users to input 2 words. The program should then check whether the words entered are the same or
C. Write a C program that prompts users to input 2 words. The program should then check whether the words entered are the same or different and print the output. Sample outputs are as shown below:
D. Write a C program that asks the user to input a word and prints it in the reverse order. Maximum characters in the word entered by user should be 50. Your program should continue to ask the user for a word and print it in reverse order till the user enters quit. Sample output is as shown below:
Enter first word: computer Enter second word: programming Output: computer and programming are different words Press any key to continue .. . Enter first word: computer Enter second word computer Output: computer and computer are the same Words Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started