Mercurial Hosting > asciicaesar
view asciicaesar.c @ 0:d0fbe0f50dfb
finished program supposedly
author | VilyaemKenyaz |
---|---|
date | Sun, 13 Aug 2023 15:38:47 -0400 |
parents | |
children | c96b197faa9d |
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); }