0
I am unable to understand your program đ©
But I think you want something like this
https://code.sololearn.com/cFa5PiwdeZ0J/?ref=app
-You used many variable but not initialized it.
-You initialising array first than getting input
-Using of unnecessary variable
See my code I explained code line by line
You can understand it easily and I hope you will get your answer
Happy coding âșïž



