Why Mr Worth is so great

Write a short program that will change the output message based on the input. If “Mr Worth” is the name given, the output should be “Why is Mr Worth so great”. If “Leo” is given, the output should be “I miss cipher club”. If “Harry” is given, the output should be “Why didn’t I join cipher club”. If “Jack” is given, the output should be “What is cipher club?”. In all other cases, the output should be (“My name is ” + name.)

Scroll to Top