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 2 entered strings
Prompt the user to enter 2 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 1 eel is not a substring of hello
 Write a program that checks for substrings between 2 entered strings

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!