0

Can someone help me with this code ?

I copied it from a site and wanted to test it, but it's showing errors. Can someone please help me. I want the code to give me the maximum occurring character. https://code.sololearn.com/cBVBzMtJhUtn/?ref=app

1st May 2020, 7:46 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
3 Answers
+ 2
Looks like you forgot the second equals sign for the last comparison at line 26: if (string1[i] == string1[j] && string1[i] != ' ' && string1[i] = '0') should probably be: if (string1[i] == string1[j] && string1[i] != ' ' && string1[i] == '0') Anyway, I don't know what your code is supposed to do, so I cannot say if there are still logical errors, but changing that let run the code without showing error ^^
1st May 2020, 9:05 AM
visph
visph - avatar
+ 1
Visph thank you so much.
1st May 2020, 9:08 AM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
1st May 2020, 9:08 AM
Fernando Pozzetti
Fernando Pozzetti - avatar