hi everyone I am trying to run the following program but after taking one input it terminates and i can\'t figure out why?In main function where i am taking input of