Im still noob on C Programming. And I just want to ask can you help me understand this codes. Like share some link about this topic and is there other way on doing it?
The output of this is like: When I type HELLO the output will be URYYB (Rot13 Encryption) I hope you can help me further understand and learn some other way(simple way) of doing it ^_^
#include <stdio.h>
#include <conio.h>
int main(){
int c;
while ((c = getchar()) != EOF){
if (c>='a' && c<='m') c += 13;
else if (c >= 'n' && c <= 'z') c -= 13;
else if (c >= 'A' && c <= 'M') c += 13;
else if (c >= 'N' && c <= 'Z') c -= 13;
putchar(c);
}
getch();
return(0);
}