why I am getting two results instead of one? anything wrong with algorithm? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why I am getting two results instead of one? anything wrong with algorithm?

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

9th Jul 2017, 6:19 AM
Rajesh Nayak
Rajesh Nayak - avatar
4 Answers
+ 1
https://code.sololearn.com/c9VcUJKQ2Gfy/?ref=app
9th Jul 2017, 6:43 AM
Pratheesh S
Pratheesh S - avatar
+ 1
It's because you have not used the if else statements correctly! Check the boundaries you have added. There cannot be two else statements for one if.
9th Jul 2017, 6:27 AM
Pratheesh S
Pratheesh S - avatar
+ 1
Can you please make a program using if else for the given topic?
9th Jul 2017, 6:36 AM
Rajesh Nayak
Rajesh Nayak - avatar
+ 1
You can change the boundaries as you please😊
9th Jul 2017, 6:43 AM
Pratheesh S
Pratheesh S - avatar