comparison asciicaesar.c @ 0:d0fbe0f50dfb

finished program supposedly
author VilyaemKenyaz
date Sun, 13 Aug 2023 15:38:47 -0400
parents
children c96b197faa9d
comparison
equal deleted inserted replaced
-1:000000000000 0:d0fbe0f50dfb
1 // Encryption and Decryption Program
2
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <string.h>
6
7 void main(int argc, char*argv[]){
8 char *string = argv[1];
9 int modifier = atoi(argv[2]);
10 char newchar;
11 for(int i = 0;i != strlen(string);i++){
12 newchar = string[i] + modifier;
13 printf("%c",newchar);
14 }
15 exit(0);
16 }