Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given string userInput 1 on one line and string userInput 2 on a second line, assign outString with the longer string. If the strings are

Given string userInput1 on one line and string userInput2 on a second line, assign outString with the longer string. If the strings are the same length, assign outString with "Same Length".
Ex: If the input is:
garden
dog
then the output is:
garden

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions