Algorithm C Program Goes Into A Never Ending Input Cycle Stack Overflow

Algorithm C Program Goes Into A Never Ending Input Cycle Stack Overflow