Not getting output

can u correct my mistake i am not getting output its only getting compiled

Hi Hiten. Ur code was ok but there was just a small mistake.
In line 58 u were checking number< n while it should be number <= 9. as in ur case number 9 was never being checked due to (number< n).

I have corrected ur code https://ide.codingblocks.com/s/578627
Its now working perfectly

if ur doubt is resolved u can mark the doubt as resolved and give ur valuable feedback

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.