Crypto - Caesar I
As on most challenge sites, there are some beginner cryptos, and often you get started with the good old
caesar cipher.
I welcome you to the WeChall style of these training challenges :)
Enjoy!
I welcome you to the WeChall style of these training challenges :)
Enjoy!
AOL XBPJR IYVDU MVE QBTWZ VCLY AOL SHGF KVN VM JHLZHY HUK FVBY BUPXBL ZVSBAPVU PZ SNUIMPNNPSOZ
#include<stdio.h>
#include<string.h>
int main()
{
int len;
char an[100]={0};
gets(an);
len=strlen(an);
for(int i=1;i<26;i++)
{
for(int j=0;j<len;j++)
{
if(an[j]>='A'&&an[j]<='Z')
{
if(an[j]+i>'Z')
printf("%c",an[j]+i-26);
else
printf("%c",an[j]+i);
}
else
printf("%c",an[j]);
}
putchar('\n');
putchar('\n');
}
return 0;
}