1
The idea of the code was to enter a letter, for example 'a' and return a letter in front of the alphabet, in this case the letter 'b', but the program does not return anything and I can not find the problem
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char str[100];
fgets(str, 100, stdin);
for (int i=0;i<strlen(str);i++){
printf("%c", str[i]+1);
}
return 0;
}
theoretically is doing this just testing (has modifications to do in the code), but, it is working yes. (changes do not need the is, for example)
– novic
One point you have to consider is that as you speak of "letter" then you have to decide whether it will be circular or not, that is, whether the letter following a 'z' should or should not be a 'a''.
– anonimo