+ 1

How to make this calculate properly (I'm starter) example: when you input in 1 and 5 I want to be 6...not 15

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

9th Aug 2019, 11:03 PM
Stefan
Stefan - avatar
2 ответов
+ 3
The problem is, the entered values are not numbers but they are strings. So, you have to convert thoses values into numbers. You can do as you see here: https://code.sololearn.com/WxFfxjED3OiU
10th Aug 2019, 1:36 AM
Régy Mintyene
Régy Mintyene - avatar
+ 1
Thanks! You are right!
10th Aug 2019, 6:25 PM
Stefan
Stefan - avatar