Question: C programing What this program does is checking if the pasword is strong, base on capital letter and containing number and the length should be
C programing
What this program does is checking if the pasword is strong, base on capital letter and containing number and the length should be more than 6.
Something weird happens when I print out the array input can someone help why I am getting those weird stuff in my arrays?
#include
printf("Enter a password "); scanf(" %s", password);
if(strlen(password)>=6) // strlen() is used to check the length of string { flg1 = 1; }
for(count=0;count
}
for(count=0;count
}
printf(" UpperCase %d\t letter %d\t Digit %d\t ($-#-_-&) %d ",i,j,k,l);
int m = 0; for(m=0;m
if(i>=1 && j>=1 && k>=1 && l>=1 && flg1 >= 1 ){ printf(" this is a good password "); }
else{ printf(" this is a weak password "); }
return 0; }
out put when I just typed g

Enter a password UpperCase e etter 6 Digit e ($-# 8) 0 password[g] password[ l password [L] passwordu password[I] password[k] password[] password[u] password[p] asswordl password[@] password] password[] password password] password[] passwordIt] password 2 password[@] password[ ] password[p] this is a weak password Process returned 0 (0x0) execution time : 2.046 s Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
