Hello there people. I am pretty new in C and programming in general. I was trying to make a password checking programme and I seem to be stuck.
int main (void)
{char ch;
while ((ch=getchar()) != EOF){
This is the beginning of my code and whenever I try to type in a password, ch just gets each character one by one. For example, when I type in 348%tdwe, it says
3 is a valid password
4 is a valid password
...
e is a valid password.
I am not sure if I am saying this correctly (although I sure do hope so) and I would like to ask you not to give me too complex answers because (again) I am just a month in..
Thank you in advance