+ 13

Why this code does not work ¿? Зашто овај код не ради ¿?

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

3rd Feb 2018, 11:07 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
3 Antworten
+ 19
Thanks Waclaw Zalicki and Tito Nogueira !¡ Хвалa Waclaw Zalicki i Tito Nogueira !¡
15th Feb 2018, 4:07 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
+ 2
Cause in print you got ‘-‘ instead of ‘+’. You can’t substract integer and string type. However with ‘+’ symbol c# automatically converse integer to string. I hope everything is clear now ;)
4th Feb 2018, 12:03 AM
Wacław Zalicki
Wacław Zalicki - avatar
+ 1
The operator - does not work with strings operands.
4th Feb 2018, 1:28 AM
Tito Nogueira
Tito Nogueira - avatar