What's wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
7th Jul 2020, 12:42 PM
P. Aamir
P. Aamir - avatar
7 Answers
+ 4
P. Aamir Check this. You had written wrong in cases https://code.sololearn.com/cSquq4XPCS84/?ref=app
7th Jul 2020, 1:15 PM
A͢J
A͢J - avatar
+ 9
P. Aamir your code is working you need one correction make a comment line 8 then input two Numbers First number then press enter Second no then enter Cases I think u not giving input properly
8th Jul 2020, 7:14 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
P. Aamir You have already declared a, b and result as int then why did you cast with int even it is not a type of casting. Casting should be like (int) a not int(a) Do only result = a + b;
7th Jul 2020, 1:06 PM
A͢J
A͢J - avatar
+ 3
AJ Anant thanks bro
7th Jul 2020, 1:55 PM
P. Aamir
P. Aamir - avatar
+ 1
Yeah ok I'll try that
7th Jul 2020, 1:06 PM
P. Aamir
P. Aamir - avatar
+ 1
Bro it's not working yet
7th Jul 2020, 1:10 PM
P. Aamir
P. Aamir - avatar
0
🐍Sizuna 🐉 AJ Anant - C#/Java Challenger solved the error My code started running after that Thanks anyways
9th Jul 2020, 6:29 AM
P. Aamir
P. Aamir - avatar