Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cont,i;
- printf("Digite o texto: ");
- scanf("%s",chave);
- cont=strlen(chave);
- strcpy(texto, chave);
- for(i=0;i<cont;i++)
- {
- if (texto[i]=='c')
- frase[i]='a';
- else if (texto[i]=='z')
- frase[i]='e';
- else if (texto[i]=='s')
- frase[i]='o';
- else if (texto[i]=='m')
- frase[i]='r';
- else if (texto[i]=='n')
- frase[i]='n';
- else if (texto[i]=='e')
- frase[i]='z';
- else if (texto[i]=='j')
- frase[i]='d';
- else if (texto[i]=='a')
- frase[i]='w';
- else frase[i]=texto[i];
- }
- printf("n %snTexto Descriptografada e :n %sn", chave, frase);
Add Comment
Please, Sign In to add comment