Page 1 of 1

Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found w

Posted: Thu Jul 14, 2022 2:11 pm
by answerhappygod
Write A Program That Reads Two Phrases On Separate Lines And Outputs One Of The Four Responses 1 Phrase One Is Found W 1
Write A Program That Reads Two Phrases On Separate Lines And Outputs One Of The Four Responses 1 Phrase One Is Found W 1 (22.18 KiB) Viewed 28 times
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