Question: Write a program that checks for substrings between 2 entered strings Prompt the user to enter 2 Strings into the console Using a ternary operator,
Write a program that checks for substrings between entered strings
Prompt the user to enter Strings into the console
Using a ternary operator, report to the user if the second string is a substring of the first
Example output:
Enter the first string:
hello
Enter the second string:
ell
ell is a substring of hello
Enter the firkt string: hello Enter the second string: eel eel is not a substring of hello
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
