challage #1 all good but thre is one problem pleace help

+2 Thalinda Bandara · August 10, 2015
#include
#include
#include
#include
main(){
char pass[20];
int count=0,lower=0,upper=0,singe=0,digit=0;

printf("Pleace Enter you passworde\n");
scanf("%s",&pass);


while(count6){

        if(islower(pass[count])){
            lower=1;
        }
        if(isupper(pass[count])){
                upper=1;

        }
        if(isdigit(pass[count])){
            digit=1;
        }
        if(pass[count]=='$'){
            singe=1;
        }
        count++;
    }
    else{
        printf("The Passworde Must Contain At leas 8 charactors");
       break;
    }



}
if(lower==1 && upper==1 && digit==1 && singe==1){
    printf("You passworde Is good");
}
else{
    printf("Not a Good Passworde");
}
}
/* if we didn't enter correct number of password charactors it's print The Passworde Must Contain At leas 8 charactors
but with not a good passwode pleace tell me the reson */










Post a Reply

Replies

Oldest  Newest  Rating
0 Sha Kal · August 10, 2015
Can't see your code, screenshot it and upload the image.
+1 Thalinda Bandara · August 11, 2015
Thankyou very much for reply me frnd! after i posting my code in formu i have deleted the file. so i had to build it again after tha all errors are gone i don't what i did but now it's runing perfectly. again thank you for replying.
my code is in here
http://ideone.com/O5kdzE
0 Sha Kal · August 11, 2015
Good! :)
0 Thalinda Bandara · August 11, 2015
Thanks frnd
  • 1

C

107,091 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator