Contact Learn C
Copy

Program 211:Encryption using ASCII code in C

Program 211:
 
#include<stdio.h>
#include<string.h>
main()
{
//Prints ascii value of given string
int i,temp,x,y=1,binary=0;
 char str[1000];
 printf("Enter a sentence\n");
 gets(str); 
 i=0;
 printf("Encrypted ASCII code\n");
  while(str[i]!='\0')
  {  
    printf("%d ",str[i]);
     i++;
  }
  printf("\n");
}
 
Explanation:

//Coming Soon

Output:











 
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide