Help ramu wrong output

hard to make logic please simplify also I took help from Prateek sir video from youtube to understand the question

I understand what to do but hard make logic and convert it into code even after watching the video it’s still hard review the code and highlight mistake

question link:- https://online.codingblocks.com/app/player/189104/content/180067/4750/code-challenge

video:- https://www.youtube.com/watch?v=CKDFPzX24BY

code:-https://ide.codingblocks.com/s/441626

hello @dasvishal60

check now->


to read multiple variable we use following sytax->

cin>>var1>>var2>>var3; 

huh that little mistake ruin the code :joy: :sweat_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.