"program in c that uses cipher shift" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "program in c that uses cipher shift" answered properly. Developers are finding an appropriate answer about program in c that uses cipher shift related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like program in c that uses cipher shift. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on program in c that uses cipher shift.
program in c that uses cipher shift
#include<stdio.h>
int main()
{
char message[100], ch;
int i, key;
printf("Enter a message to encrypt: ");
gets(message);
printf("Enter key: ");
scanf("%d", &key);
for(i = 0; message[i] != '\0'; ++i){
ch = message[i];
if(ch >= 'a' && ch <= 'z'){
ch = ch + key;
if(ch > 'z'){
ch = ch - 'z' + 'a' - 1;
}
message[i] = ch;
}
else if(ch >= 'A' && ch <= 'Z'){
ch = ch + key;
if(ch > 'Z'){
ch = ch - 'Z' + 'A' - 1;
}
message[i] = ch;
}
}
printf("Encrypted message: %s", message);
return 0;
}
Source: www.thecrazyprogrammer.com
All those coders who are working on the Whatever based application and are stuck on program in c that uses cipher shift can get a collection of related answers to their query. Programmers need to enter their query on program in c that uses cipher shift related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about program in c that uses cipher shift for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of program in c that uses cipher shift while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "program in c that uses cipher shift". Visit this developer's friendly online web community, CodeProZone, and get your queries like program in c that uses cipher shift resolved professionally and stay updated to the latest Whatever updates.