Some print lines included for checking.

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>

int main()
{
    char pswd[2];
    int key1 = 0;
    int key2 = 0;
    int key3 = 0;
    int hash = '#';

        printf("key1 = %d, key2 = %d, key3 = %d \n", key1, key2, key3);
        printf("Enter a 3 character password, comprised of an upper case letter, a single digit and a #.\n");
        scanf(" %s", pswd);

    if(isupper(pswd[0]) || (isupper(pswd[1]) || (isupper(pswd[2])))){

        printf(" %c  %c  %c \n", pswd[0],pswd[1],pswd[2]);
        key1 = 1;
        printf("  key1 = %d. \n", key1);
    }else{
        key1 = 0;
        printf("Wrong, key1 = %d. \n", key1);
    }

    if(isdigit(pswd[0]) || (isdigit(pswd[1]) || (isdigit(pswd[2])))){

        printf(" %c  %c  %c \n", pswd[0],pswd[1],pswd[2]);
        key2 = 1;
        printf("  key2 = %d. \n", key2);
    }else{
        key2 = 0;
        printf("Wrong, key2 = %d. \n", key2);

    }

    if ((pswd[0] == '#') || (pswd[1] == '#') || (pswd[2] == '#')){

        printf(" %c  %c  %c \n", pswd[0],pswd[1],pswd[2]);
        key3 = 1;
        printf("  key3 = %d. \n", key3);
    }else{
        key3 = 0;
        printf("Wrong, key3 = %d. \n", key3);
    }
    if ((key1 == 1) && (key2 == 1) && (key3 == 1)){
        printf(" Password is correct! \n");
    }else{
        printf(" Entry Denied!\n");
    }
    return 0;
}