#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include<string.h>
#include <math.h>
int main()
{
int i;
char password[50];
int passwordstrength=0;
printf("Please enter a strong password which includes \n an uppercase, \n a lower case, \n a number and \n a special character\n");
scanf("%d", &password);
for(i=1;i<50;i++){
if(isupper(password)){
printf("password contains a uppercase");
passwordstrength++;
break;
}
}
return 0;
#include <stdlib.h>
#include <ctype.h>
#include<string.h>
#include <math.h>
int main()
{
int i;
char password[50];
int passwordstrength=0;
printf("Please enter a strong password which includes \n an uppercase, \n a lower case, \n a number and \n a special character\n");
scanf("%d", &password);
for(i=1;i<50;i++){
if(isupper(password)){
printf("password contains a uppercase");
passwordstrength++;
break;
}
}
return 0;