Question: 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:

C. Write a C program that prompts users to input 2 words.

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:

The program should then check whether the words entered are the same

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!