Write a C Programm showing Encodeing Decoding Technique

/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
#include

void main(){
char string[50],tmp[50];
int spcnt[50],i,j,c;
clrscr();
printf("Enter a string : ");
gets(string);

//encode logic
for(i=0;string[i];i++){
string[i]=string[i]+3;
}
textcolor(GREEN);
printf("\n");
cprintf("Encoded string is as follow : %s",string);

//decompressed logic
for(i=0;string[i];i++){
string[i]=string[i]-3;
}
textcolor(GREEN);
printf("\n");
cprintf("De-Encoded string is as follow : %s",string);
getch();
}



Powered by Wufoo