Jump to level 1 Given string userInput, output "Matching" if the fourth character of userInput is 'e'. Otherwise, output
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Jump to level 1 Given string userInput, output "Matching" if the fourth character of userInput is 'e'. Otherwise, output
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!