#1 challenge ,,,, help plz

0 Isra Chahrazed Goumiri · July 29, 2015
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>

int main()
{
   char mdp[10] ;
   int i=0;
   int dollar=0;
   int numb=0;
   int upletter=0;

   printf("enter your password!\n");
   scanf(" %s",mdp);

   for (i=1;i<=10;i++){


   if(isupper(mdp)){
          upletter=1;


   }else if (isdigit(mdp)){
   numb=1;
  
   }else if (mdp=='$'){
   dollar=1;
   }
}

   if((upletter==1)&&(numb==1)&&(dollar==1)){
     printf("your password is pretty awesome \3",mdp);
   }else{
   printf("your password is weak !",mdp);

   }





    return 0;
}

Post a Reply

Replies

Oldest  Newest  Rating
0 Isra Chahrazed Goumiri · July 29, 2015
didnt work out :/
@thomas
0 Isra Chahrazed Goumiri · July 30, 2015
thank you so much :D
  • 1

C

106,972 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator