+ 5
Why the else condition in my code does not work,?
It is appeared script "You're close!', but the problem could not be solved. I tried everything, but nothing came of it.
5 Answers
+ 4
I've corrected my code but the problem continues to exist
https://code.sololearn.com/ceWUs47lBW5Q/?ref=app
+ 4
I reassigned to cntrl 1,but the problem continue to exist.
https://code.sololearn.com/ceWUs47lBW5Q/?ref=app
0
What is the need of taking N as input?
According to task, input is just 2 lines of strings.. So input to N is 0 hence no loop is going to execute and cntrl remains 0 all time.
Hope it helps...
0
fr is a single dimensional character array so it takes single string into array.. But you need 4 strings.. How are handling this?
Use 2 dimensional array..
Loop only 4 times.. Not 90 timesš
edit:
Egor Tonchev(EGO)
cntrl is initially 0 so you just reassigning 0 so no change on cntrl value so it always if block get executed.
Actually, the actual problem is in comparison count argument passing 0 , means no comparisons.. if you want to compare single letter then pass argument count value as 1 instead of 0.
hope these helps to solve the problem..
0
Egor Tonchev(EGO)
I already posted all needed correction in my last reply.. Read again and try..
If not work, or if want correct solution then reply.. Give a try again before..