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

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!