Question: Given string userInput1 on one line and string userInput2 on a second line, assign shorterStr with the shorter string. If the strings are the same

Given string userInput1 on one line and string userInput2 on a second line, assign shorterStr with the shorter string. If the strings are the same length, assign shorterStr with "Same Length". Ex: If the input is: candles man then the output is: man
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
