Showing runtime error

https://ide.codingblocks.com/s/151804 This code is showing runtime error

Hello @tanjuljain19,
I have updated your code and commented the corrections. Kindly go through it once. https://ide.codingblocks.com/s/151834