Mercurial Hosting > asciicaesar
view asciicaesar.c @ 2:c96b197faa9d default tip
Autmatic Win32 Porting
author | VilyaemKenyaz |
---|---|
date | Thu, 28 Sep 2023 13:20:40 -0400 |
parents | d0fbe0f50dfb |
children |
line wrap: on
line source
// Encryption and Decryption Program #include <stdio.h> #include <stdlib.h> #include <string.h> void main(int argc, char*argv[]){ char *string = argv[1]; int modifier = atoi(argv[2]); char newchar; for(int i = 0;i != strlen(string);i++){ newchar = string[i] + modifier; printf("%c",newchar); } exit(0); }