Displaying Source Code(s)
|
|
Prg.to encrypt & decrypt a given string.
--------------------------------------------------------------------------------
#include <stdio.h>
# include <conio.h>
void main()
{
int n,i;
char a[80];
clrscr();
printf("
Enter string:- ");
gets(a);
printf("
OPTIONS:- ");
printf("
(1) Encrypt the string.");
printf("
(2) Decrypt the string.");
printf("
CHOICE(1 or 2):- ");
scanf("%d",&n);
switch(n)
{
case 1:
for (i=0;(i<80&&a[i]!='
|
|
|