+ 1
Hey please help me to correct this code! Why it gives wrong output. the same code i wrote for java which runs perfectly
5 Answers
+ 2
It's just the line 8...Correct it and everything else seems fine :)
+ 2
you said right i have to convert string into int using ParseInt.
Thanks bro
+ 1
The .value getter returns a string. Parse a, b, c to integer.
I'm not sure line 8 is intended or not, but I'd suggest you remove the assignment to a.
https://code.sololearn.com/WnZO4dk3X9RK/?ref=app
+ 1
Hemant Prakash so it's still not working?
- 1
i fixed line 8 but still not give correct output