It is compiling successfully but after submitting it is showing run error.Please check my code
After submitting my code is showing run error
hey @apoorvagupta1, i have commented your mistake and have edited your code to here: https://ide.codingblocks.com/s/338891?_ga=2.174236583.488923441.1600526200-765476468.1595853124
have a look and correct it 
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.