Ex: If the input is:
the output is:
Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found within phrase two 2) Phrase two is found within phrase one 3) Both phrases match 4) No matches Hint: Use the string function find(). Ex: If the input is: fire firetruck the outputis: Eire is found within firetruck Ex: If the inputis: the green grass grows green grass the output is: green grass is found within the green grass grows Ex: If the inputis: pick a card pick a card the output is: Both phrases match
Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found w
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found w
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!