Need help with this code

+1 Josh Blarney · December 2, 2015
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>
int main(){
    int i = 0;
    char string1[100];

    printf("Please enter password\n");
    gets(string1);

    if(strlen(string1) < 6)
    {
        printf("Password is too short\n");
    }
    if(isalnum(string1) && isupper(string1) && isdigit(string1))
    {
        printf("Strong Password\n");
    }
    else
    {
        printf("Weak Password\n");
    }




return 0;
}

Post a Reply

Replies

Oldest  Newest  Rating
0 Skyler Knecht · December 3, 2015
What do you need help with?
  • 1

General Chat

107,003 followers
About

Chat about anything non-computer related including, music, movies, tuna sandwiches, and more!

Links
Moderators
Bucky Roberts Administrator