My output is right but answer's wrong when i submit-FLOW006

my code- CodeChef: Practical coding for everyone
question- FLOW006 Problem - CodeChef
can someone tell me what is wrong with my program

Consider the test input:

1 Like

thank you for helping me figure out my problem i have corrected it

1 Like