So the task is to write a piece of code that checks a password for an uppercase letter, lowercase letter, number and a sign, then print out if it's a strong password or a weak one.
However im running into a problem with my code, i've recently started coding so im not very experienced, if anyone could help me fix the code that would be great.
This is my code:
#define MAX 100
char password [MAX];
for(int i=0; i<=password[MAX]; i++)
if(up && low && sign && num)
printf("%d %d %d %d", up, low, sign, num);