#include <stdio.h>
#include <stdlib.h>

int main()
{
    int upperCase = 0, lowerCase = 0, digit = 0, letterNumber = 0, loop;
    char password[100], singleLetter;
    puts("Enter your password for analysing:");
    gets(password);

   for(loop = 0; loop <= 100; loop++){
        singleLetter = password[letterNumber];

        if( isalpha(singleLetter) ){

            if( isupper(singleLetter) ){
                upperCase++;
                letterNumber++;
             }else{
               lowerCase++;
               letterNumber++;
             }

        }else if ( isdigit(singleLetter) ){
            digit++;
            letterNumber++;
         }

     }

    if(upperCase >= 1 && lowerCase >= 1 && digit >= 1){
        printf("You have a strong password. \n");
    }else{
       printf("You must change your password. \n");
    }

    return 0;
}