Question: Check Substring Substring method 2 points Write a program that prompts the user to enter two strings and check whether the second string is a
Check Substring Substring method 2 points
Write a program that prompts the user to enter two strings and check whether the second string is a substring of the first one.
Output Should look like this
Enter string s1: mountaindew
Enter string s2: dew
dew is a substring of mountaindew
Enter string s1:Helloworld
Enter string s2:
elo elo is not a substring of Helloworld
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
