Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message. Sample run 1: Enter two words separated by spaces: Welcome WELCOME Output: You have only entered one word: “WELCOME” Sample run 2: Enter two words separated by spaces: NUST Students Output: You have entered two words: “nust” and “students” VPL ◄ Lab04_Task01B Jump to... Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message. Sample run 1: Enter two words separated by spaces: Welcome WELCOME Output: You have only entered one word: “WELCOME” Sample run 2: Enter two words separated by spaces: NUST Students Output: You have entered two words: “nust” and “students” VPL ◄ Lab04_Task01B
Create a
Sample run 1:
Enter two words separated by spaces: Welcome WELCOME
Output: You have only entered one word: “WELCOME”
Sample run 2:
Enter two words separated by spaces: NUST Students
Output: You have entered two words: “nust” and “students”
Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.
Sample run 1:
Enter two words separated by spaces: Welcome WELCOME
Output: You have only entered one word: “WELCOME”
Sample run 2:
Enter two words separated by spaces: NUST Students
Output: You have entered two words: “nust” and “students”
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images