Hi! Recently started to teach my self learning C.
Right now i am trying to do a test.
In this test I am supposed to make a Password checking program,
this program is going to check if there is 1 Uppercase character, 1 number and 1 $ sign in the password.
This is what i got so far:
I was wondering if there is some loop form I can use to skip writing isupper(Password[]) like a 1000 times.Code:char Password[5]; printf("Enter Password: "); scanf("%s" , Password); if( isupper(Password[0])|| isupper(Password[1])||isupper(Password[2])||isupper(Password[4]) || isupper(Password[3])|| isupper(Password[4]) ){ }
Remeber I cant use void thats against the rules.