Question: Given string userText on one line, character charToFind on a second line, and integer strindex on a third line, output Found match if the character

 Given string userText on one line, character charToFind on a second

Given string userText on one line, character charToFind on a second line, and integer strindex on a third line, output "Found match" if the character at index strindex of userText matches charToFind. Otherwise, output "No match". End with a newline. Ex: If the input is: write i 2 then the output is: Found match Note: Assume the length of string userText is greater than strindex

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!