What is wrong with this code please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong with this code please

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

29th Dec 2021, 5:54 AM
Abbakar_ah!!!
Abbakar_ah!!! - avatar
4 Answers
+ 2
You were misplacing the ifs, this should go together with an else, as in the code that I attach. https://code.sololearn.com/cPen2y4uBs9H/?ref=app
29th Dec 2021, 6:10 AM
CGM
CGM - avatar
+ 1
https://code.sololearn.com/c5sqts6Zy01p/?ref=app You're confusing between else if and else Else can only be used once and all other gets ignored so in this case you'd have to use else if.
29th Dec 2021, 6:13 AM
マッドキング♣️✨♣️ [MadKing]
マッドキング♣️✨♣️ [MadKing] - avatar
+ 1
Thank alot
29th Dec 2021, 6:14 AM
Abbakar_ah!!!
Abbakar_ah!!! - avatar
0
Abbakar_ah!!! Brother please go and visit , if else statement implementation then modify your code.
29th Dec 2021, 6:14 AM
saurabh
saurabh - avatar