Runtime error in code //

Please tell why is this giving runtime error. is there any problem with logic?


Please provide the code if possible for reference.

Hi @Aparna i went through your code, there were some little mistakes like taking array size less than N and some brackets issue. So i have resolved that in your code this is link https://ide.codingblocks.com/s/257985

Please go through it once and tell me if there are some doubts in that, then please feel free to ask.
If it is clear now then you can mark this doubt as resolved.

Yes it worked. Thankyouu so much!

1 Like