0

Where is the error?!!

I wanna write a program that reads 8 characters from the user and store them in an array. The program then asks the user to enter a character to search for it in the array. If the character found print this character many times depend on its index in the array. Otherwise, print "This character is not found". https://code.sololearn.com/c6murr23zB5x/?ref=app

16th Nov 2017, 7:26 AM
While (Everything!=∞)
While (Everything!=∞) - avatar
4 Respostas
+ 11
@Shahad Shahad: It never gives an error, but prints out "This character is not found" counter number of times.
16th Nov 2017, 8:27 AM
Dev
Dev - avatar
+ 10
I get no error while running the code, you may be wrong in the input part. This is how you should write 8 chars in the input box : a b c d e f g h and then the last char to find, say h
16th Nov 2017, 7:53 AM
Dev
Dev - avatar
0
but when I search for another characters like "z" ..there's a error💔
16th Nov 2017, 8:01 AM
While (Everything!=∞)
While (Everything!=∞) - avatar
0
great ... but if I want print "This character is not found"just for one time ..how can I do that?☺💔
16th Nov 2017, 9:21 AM
While (Everything!=∞)
While (Everything!=∞) - avatar