It was meant to work only with lowercase letters and when it came to symbols did not change, but they are being altered. What's the problem?
#include <stdio.h>
int main()
{
char texto[100];
int i = 0,j = 0,con,tam;
printf("texto\n");
gets(texto);
fflush(stdin);
printf("constante\n");
scanf("%d",&con);
tam = strlen(texto);
char cesar[tam];
for(i = 0; i<tam; i++)
{
if(texto[i] >= 'a' || texto[i]<= 'z')
cesar[i] = ( (texto[i] - 97 + con)%26 + 97);
else
cesar[i] = texto[i];
printf("%c",cesar[i]);
}
}