umarslayer 0 Newbie Poster

can u help me with this problem:

Write a program that will be able to examine every character in a string to see if matches the character supplied by the user.

i. Ask for an input string (up to 4 characters) from the user. Display each character to the screen as the user types it in. If the user attempts to enter more than 4 characters, given an error message and terminate the program.

ii. If the user enters less than 5 characters, perform the following operation to every integer in the input string:
Create a loop that will examine the character string. If match is found, the result will show that the character is in the string but if no match, the result of no character been found in the string will appear.


Example;
Please enter a character of string:
SEGI
Enter the character that you want to find:
E
E is found in the string