Check password errors

I have written a program as shown, the program was designed for Checking the password and its works fine if i am entering integer. But when i enter a English letter it keep repeating Please enter, how can i avoid this?
I am relatively new to C program so explains could be really helpful.

You are viewing a single comment. View All

@SixBeeps Thx a lot :D