Page 1 of 1

Jump to level 1 Given string userInput, output "Matching" if the fourth character of userInput is 'e'. Otherwise, output

Posted: Thu Jul 14, 2022 2:06 pm
by answerhappygod
Jump To Level 1 Given String Userinput Output Matching If The Fourth Character Of Userinput Is E Otherwise Output 1
Jump To Level 1 Given String Userinput Output Matching If The Fourth Character Of Userinput Is E Otherwise Output 1 (61.93 KiB) Viewed 26 times
Jump to level 1 Given string userInput, output "Matching" if the fourth character of userInput is 'e'. Otherwise, output "Not matching". End with a newline. Ex: If the input is: threw then the output is: Matching Note: Assume the length of string userinput is greater than or equal to 4. 1 #include 2 #include 3 using namespace std; 4 5 int main() \{ string userInput; 7 8 getline(cin, userInput); 101/ Your code goes here */ 11