16th Oct 2018, 5:17 PM
Harsh Agrawal
Harsh Agrawal - avatar
5 Respuestas
+ 2
Dan Walker is right, there is a problem with comapring strings inside the for loop.
16th Oct 2018, 9:11 PM
Michal
Michal - avatar
+ 2
Harsh Agrawal they are different, everytime your run the program, you will get different average and sum
17th Oct 2018, 2:24 AM
‎ ‏‏‎Anonymous Guy
+ 1
compare strings with .equals () rather than ==. This might be the only problem but I haven't checked
16th Oct 2018, 5:20 PM
Dan Walker
Dan Walker - avatar
+ 1
Dan Walker but why the marks r equal in both cases if I want to be them different then what can I do??
17th Oct 2018, 12:56 AM
Harsh Agrawal
Harsh Agrawal - avatar
+ 1
thnxzz everyone now u can check my code
17th Oct 2018, 4:39 PM
Harsh Agrawal
Harsh Agrawal - avatar