1
The problem is that I need to stop printing when it reaches the last digit of the vector only I don’t know how to do, and also how I will print after z, because the way I did it didn’t print ? ( I’m a beginner so if you can explain how it works thank you )
#include <stdio.h>
#include <string.h>
int main () {
char cifra[50];
printf("\nInforme um texto: ");
gets(cifra);
for(int i=0; i<**50**; i++){
if(cifra[i]>'z'){
cifra[i]='a';
printf("%c",cifra[i]+1);
}else{
printf("%c",cifra[i]+3);
}
}
return 0;
}
Vlw, I had done alone minus the z part, I understood your code and helped very vlw by answering man !
– Luis Souza