#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
int main()
{
  char passWord[10];
  int i = 0, upper = 0, lower = 0, digit = 0, symbol = 0;
  printf("Enter your password (No more than 10 characters). \nPassword must contain 1 UPPER case, 1 number, & 1 symbol: ");
  scanf("%s", passWord);
  for(i = 0; i < strlen(passWord); i++)
    {
        if(strlen(passWord) > 11)
            {
              printf("\nToo many characters, learn to count!!!\n\n");
              main();
              return(0);
            }
        if(isalpha(passWord))
            {
             if(isupper(passWord)) upper++;
             else lower++;
             }
         else if (isdigit(passWord)) digit++;
         else symbol++;
       }
  if((upper == 0) || (digit == 0) || (symbol == 0))
  {
      printf("\nTry again, your password is weak, and this time, try following the instructions!!!\n\n");
      main();
  }
  else return printf("\nGood job, password is strong, you can follow instructions!!!\n");
  return(0);
}