#include<stdio.h>
#include<conio.h>
FILE * fin,*fout;
void main()
{
void input(void);
void output(void);
input();
output();
getch();
}
void input(void)
{
char c;
fin=fopen("input12.txt","w");
printf("\n ENTER THE THE FOR DECODING::");
while((c=getchar())!=':')
{
fprintf(fin,"%c",c);
}
fprintf(fin,"%c",c);
fclose(fin);
}
void output(void)
{
char c;
int intc;
fin=fopen("input12.txt","r");
fout=fopen("output12.txt","w");
fprintf(fout,"\n THE DECODED TEXT IS::");
while((c=getc(fin))!=':')
{
// printf("%c",c);if(c!=' ')
{
intc=c;
if(intc+5>122)
{
c=96+((intc+5)%122);
}
elseif((intc+5>90 && intc+5<96) && intc<97)
{
c=64+((intc+5)%90);
}
else
c=intc+5;
}
putc(c,fout);
printf("%c",c);
}
fclose(fin);
fclose(fout);
}
****************************INPUT******************************
abcd wxyz ABCD WXYZ:
****************************OUTPUT******************************
THE DECODED TEXT IS::fghi bcde FGHI BCDE