0
ΠΠΎΡΠ΅ΠΌΡ Π½Π΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ ΠΌΠΎΠΉ ΠΊΠΎΠ΄ ΠΠ°Π»ΡΠΊΡΠ»ΡΡΠΎΡ(ΡΠΏΡΠ°ΡΡΠ½ΡΠΉ) Ρ Π·Π΄Π΅Π»Π°Π» Π²ΡΡ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΠΎ Π½ΠΎ ΠΏΠΈΡΠ΅Ρ ΠΊΠ°ΠΊΡΠ΅ΡΠΎ ΠΎΡΠΈΠ±ΠΊ ΠΠ°ΠΉΠ΄ΠΈΡΠ΅ ΠΈ Π½Π°ΠΆΠΌΠΈΡΠ΅ Run ΠΈ ΡΠ²ΠΈΠ΄ΠΈΡΠ΅
https://code.sololearn.com/cT3eP7329ynd/?ref=app ΠΊΡΡΠ°ΡΠΈ Ρ Π΄ΡΡΠ³ΠΈΡ ΠΌΠΎΠΈΡ Π½Π΅ ΠΏΡΠ±Π»ΠΈΡΠ½ΡΡ ΠΊΠΎΠ΄ΠΎΠ² ΡΠ°ΠΊΠ°Π΅ΠΆΠ΅ ΡΠ΅ΡΡΠ°ΡΠΈΡ ΡΠΎΠΊΠΎ Π² ΠΎΡΠΈΠ±ΠΊΠ΅ Π΄ΡΡΠ³ΠΈΠ΅ ΡΠΈΡΠ»Π°
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