#include <stdio.h>
#include <string.h>
int main()
{
char str1[50];
int i,j;
printf("please enter cipher code\n");
gets(str1);
printf("the cipher code is \n");
puts(str1);
for(i=0;i<strlen(str1);i++)
{
if(str1[i]<=90 && str1[i]>=65)
str1[i]=155-str1[i];
if(str1[i]<=122 && str1[i]>=97)
str1[i]=219-str1[i];
}
printf("the orignal code is \n");
puts(str1);
return 0;
}
#include <string.h>
int main()
{
char str1[50];
int i,j;
printf("please enter cipher code\n");
gets(str1);
printf("the cipher code is \n");
puts(str1);
for(i=0;i<strlen(str1);i++)
{
if(str1[i]<=90 && str1[i]>=65)
str1[i]=155-str1[i];
if(str1[i]<=122 && str1[i]>=97)
str1[i]=219-str1[i];
}
printf("the orignal code is \n");
puts(str1);
return 0;
}