Почему не работает мой код Калькулятор(упращёный) я зделал всё правильно но пишет какуето ошибк Зайдите и нажмите Run и увидите | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Почему не работает мой код Калькулятор(упращёный) я зделал всё правильно но пишет какуето ошибк Зайдите и нажмите Run и увидите

https://code.sololearn.com/cT3eP7329ynd/?ref=app кстати у других моих не публичных кодов такаеже сетуация токо в ошибке другие числа

21st Nov 2019, 3:26 PM
Лёха
Лёха - avatar
1 ответ
0
Лёха , there are many errors in your code. For example declaring the "znak" variable as int and assigning then string. The opposite is with int num1 and num2 declared as strings instead of int (you need also to parse them to int). Missing semicolon, wrong variable name num3 instead of num2, in the division you should ensure one of the variables is double type. Hope now everything is clear 🐱 Look at the corrected code. https://code.sololearn.com/c3lh1GryiE3t/?ref=app
21st Nov 2019, 4:10 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar