0

Please help me to solve thos code . Please tell me what is the error in this code .

https://code.sololearn.com/cMxq3ZkVz9tG/?ref=app

21st Apr 2021, 11:49 AM
Aakash Mitra
Aakash Mitra - avatar
6 Answers
+ 3
your program first calculates the values and then you're telling the complier give the user input, wtf... those variables didn't feeded a value so that's why the output gives error and the answer is 0 always. just put line 5 to line 16. something like this should work https://code.sololearn.com/cJkKH3r9i3z2/?ref=app
21st Apr 2021, 12:03 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Change the order. You are calculating before taking inputs.
21st Apr 2021, 12:01 PM
Flash
+ 1
Put line 5 after line 14
21st Apr 2021, 12:03 PM
Flash
0
Flash what do you mean please explain briefly
21st Apr 2021, 12:02 PM
Aakash Mitra
Aakash Mitra - avatar
0
Ok i will try
21st Apr 2021, 12:04 PM
Aakash Mitra
Aakash Mitra - avatar
0
Thank you for your answer
21st Apr 2021, 12:16 PM
Aakash Mitra
Aakash Mitra - avatar