Updated code...!

Sorry but this is the updated code: https://ide.codingblocks.com/s/416530