Mercurial Hosting > asciicaesar
view asciicaesar.c @ 1:ba8447ba5f5c
Fully functional.
author | VilyaemKenyaz |
---|---|
date | Wed, 23 Aug 2023 14:10:27 -0400 |
parents | d0fbe0f50dfb |
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); }