+ 1
Why this program show output 0?? Can u explain about array??
https://code.sololearn.com/c4eytnqXFrQG/?ref=app Dan Walker Sreejith Gaurav Agrawal Donna
5 Respuestas
+ 2
Dan Walker is right, there is a problem with comapring strings inside the for loop.
+ 2
Harsh Agrawal they are different, everytime your run the program, you will get different average and sum
+ 1
compare strings with .equals () rather than ==. This might be the only problem but I haven't checked
+ 1
Dan Walker but why the marks r equal in both cases if I want to be them different then what can I do??
+ 1
thnxzz everyone now u can check my code