+ 1

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

There's some problem in my code ; compiler is unable to excute "else" function instructions please check any one and explain the problem.... https://code.sololearn.com/cLiHFM0rneTQ/?ref=app

16th Oct 2021, 10:41 AM
Manoj kumar Vaduka
Manoj kumar Vaduka - avatar
8 ответов
+ 2
I don't know whats going on with that logic cause it just uses letters for variables, but you take input just fine and now you don't get a warning. Write out how you find a divisible number step by step on paper and then translate it to code.
16th Oct 2021, 10:55 AM
Slick
Slick - avatar
+ 2
Please post the code EDIT: Manoj kumar Vaduka either put braces in the else statement or unindent the return line
16th Oct 2021, 10:43 AM
Slick
Slick - avatar
0
Slick but that's not working 😑
16th Oct 2021, 10:47 AM
Manoj kumar Vaduka
Manoj kumar Vaduka - avatar
0
I just did it, i dont see your code updated
16th Oct 2021, 10:48 AM
Slick
Slick - avatar
0
Pls once check now
16th Oct 2021, 10:49 AM
Manoj kumar Vaduka
Manoj kumar Vaduka - avatar
0
Works fine, whats your input? Mine is: 3 6 Works fine every time
16th Oct 2021, 10:50 AM
Slick
Slick - avatar
0
4 and 3 is my input
16th Oct 2021, 10:51 AM
Manoj kumar Vaduka
Manoj kumar Vaduka - avatar
0
Ok thank you
16th Oct 2021, 10:56 AM
Manoj kumar Vaduka
Manoj kumar Vaduka - avatar