do While loop not working for string comparing in C

I'm very new to C Programming so kindly bear with me . Below is my C language code . which according to my knowledge should work but when i enter "exit" then according to my logic it should work . which it ain't .Kindly let me what i'm doing wrong.