Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <string.h>
- int main(){
- char SENHA[6];
- printf("Informe sua senha: ");
- gets(SENHA);
- if(strlen(SENHA) != 5){
- printf("A senha deve conter 5 digitos.\n");
- }else{
- if(strcmp(SENHA, "ABFGH")){
- printf("Senha incorreta.\n");
- }else{
- printf("Senha ok.\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment