0

consolewrite

What is wrong with 41 line ? đŸ€”đŸ€• https://code.sololearn.com/cOGZJrN19n82/?ref=app

28th Sep 2020, 3:51 PM
shiryaeva
shiryaeva - avatar
3 Answers
+ 3
You declared the variables with "var" instead of "int" and the compiler think that your variables are strings, and is therefore giving you an error because you can't subtract 2 strings. Just declare s1,s2, and s3 as int and it will be fixed.
28th Sep 2020, 4:09 PM
Mohamad Kamar
Mohamad Kamar - avatar
+ 3
You used return at frist I changed your code https://code.sololearn.com/cQ9VwKUHqSp2/?ref=app
28th Sep 2020, 4:18 PM
hossein B
hossein B - avatar
0
thanks 🕊🕊
28th Sep 2020, 4:24 PM
shiryaeva
shiryaeva - avatar