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
4 Antworten
+ 11
@Shahad Shahad: It never gives an error, but prints out "This character is not found" counter number of times.
+ 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
0
but when I search for another characters like "z" ..there's a error💔
0
great ... but if I want print "This character is not found"just for one time ..how can I do that?☺💔