Write a program that prompts the user to enter two strings, and reports whether the second string

Question:

Write a program that prompts the user to enter two strings, and reports whether the second string is a substring of the first string.
Enter string s1: ABCD
Enter string s2: BC
BC is a substring of ABCD

Enter string s1: ABCD
Enter string s2: BDC
BDC is not a substring of ABCD

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: