0

ΠŸΠΎΡ‡Π΅ΠΌΡƒ Π½Π΅ Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ ΠΌΠΎΠΉ ΠΊΠΎΠ΄ ΠšΠ°Π»ΡŒΠΊΡƒΠ»ΡΡ‚ΠΎΡ€(ΡƒΠΏΡ€Π°Ρ‰Ρ‘Π½Ρ‹ΠΉ) я Π·Π΄Π΅Π»Π°Π» всё ΠΏΡ€Π°Π²ΠΈΠ»ΡŒΠ½ΠΎ Π½ΠΎ ΠΏΠΈΡˆΠ΅Ρ‚ ΠΊΠ°ΠΊΡƒΠ΅Ρ‚ΠΎ ошибк Π—Π°ΠΉΠ΄ΠΈΡ‚Π΅ ΠΈ Π½Π°ΠΆΠΌΠΈΡ‚Π΅ Run ΠΈ ΡƒΠ²ΠΈΠ΄ΠΈΡ‚Π΅

https://code.sololearn.com/cT3eP7329ynd/?ref=app кстати Ρƒ Π΄Ρ€ΡƒΠ³ΠΈΡ… ΠΌΠΎΠΈΡ… Π½Π΅ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΊΠΎΠ΄ΠΎΠ² Ρ‚Π°ΠΊΠ°Π΅ΠΆΠ΅ сСтуация Ρ‚ΠΎΠΊΠΎ Π² ошибкС Π΄Ρ€ΡƒΠ³ΠΈΠ΅ числа

21st Nov 2019, 3:26 PM
Π›Ρ‘Ρ…Π°
Π›Ρ‘Ρ…Π° - avatar
1 Answer
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