Posts by Willian Tavares • 11 points
1 post
-
1
votes2
answers87
viewsQ: Conditional does not work as expected (related to ASCII table)
int tam, i; char msg[1000]; printf("Escreva a mensagem para ser criptografada: "); fgets(msg, sizeof(msg), stdin); tam = strlen(msg); for (i=0; i<tam; i++) { int aux; aux = msg[i]; if…