C Program for enter a to j alphabets and Print Next Fourth Alphabet Character

C Program for enter a to j alphabets and Print Next Fourth Alphabet Character


#include <stdio.h>
int main ()
{
char alpha;
printf("Please enter a to j alphabets\n");
scanf("%c",&alpha);
if(alpha>=97 && alpha<=106)
printf("%c",alpha+4);
else 
printf("Invalid Input");
getch();
return 0 ;
}

Output:

Please enter a to j alphabets
d
h

Post a Comment

Previous Post Next Post