Do we have to do the question using only if else blocks or through loops? also i can’t access the editorial for this question. if you can see my code can you please review it as I am unable to pass two test cases.
Which method to adopt
You can simply solve this question using the if else blocks only… no need of loops,
Plz send your code by saving on the ide… so that I could check your code.,