Challenge #1 problem

+1 Ahmed Samir · August 6, 2015
Hey guys i tried to solve challange no.1 today and that's the code i made 



#include
#include
#include
#include

int main(){

char a = 'a';
char password[10]  ;
int lower, upper, sympol, num ,i;
lower = upper = sympol = num = 0;

scanf_s("%s", password);

for (i = 0; i = 1 && lower >= 1 && sympol >= 1 && num >= 1){
printf("well done");
}
else{
printf("you suck");

}

scanf_s("%c", &a);

return 0;
}


but then everytime i try to to run the code and enter any value i get this 

/images/forum/upload/2015-08-05/6b1cabf17c31d68d7ebb8fd0436967a5.jpg

i checked the code many times ... but i can't even understand what is the error about

Thanks in advance 

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Toyen . · August 12, 2015
Hey there Jap!

Congrats on completing the challenge, but I dont get the "i flag" thing you have there, what exactly is the intention?
0 Tracia william · August 14, 2015
Hi everyone,I will like to utilize these stage to give a major 

praise to the bucky  and all the followers of this forum.
A guy i met on this forum has really transformed my life
by introducing me to a powerful tool that has enble me to get promotion at my work place and has boost my accadmic work.I used this tool to creat awesome advertising, presentation for our product and service.
 Thank you Liman, for introducing me to this wonderful tool.You guys can check it out http://jvz4.com/c/398791/101421 .Thanks Thanks
  • 1
  • 2

C

129,675 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator