+ 1

Code Coach Problem (Cheer Creator)

Only 3rd case is not correct, plz check and suggest: https://code.sololearn.com/c8oeT9ViFnkh/?ref=app

9th Jan 2023, 9:25 AM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar
3 Answers
+ 1
Loop should also include in else block.
9th Jan 2023, 9:56 AM
Jayakrishna 🇼🇳
+ 1
Jayakrishna🇼🇳 In that case there will be no such output for if condition, and that loop output is required for 1-n Suppose 2 - -> Ra!Ra!
9th Jan 2023, 10:04 AM
Wakil Ah Hamidi
Wakil Ah Hamidi - avatar
+ 1
Suppose if input is 12 then if condition is true. And also loop runs from 0 to 12 then observe output... it should not run loop then..
9th Jan 2023, 10:06 AM
Jayakrishna 🇼🇳