My code is not working

https://www.codepile.net/raw/75OdoVNK.cpp

Hey @premang
I checked your code and its working fine. What was the exact issue ?

take sum=16. NO O/P.

@premang
Reverse your conditions on line 17 and 21

what ? I did exactly what sir wrote in the video

@premang
You might have mistaken the conditions. Try it once.

If your doubt is resolved please mark it as closed.

resolved. thank you.