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 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
Get step-by-step solutions from verified subject matter experts
