Hailcaesar
Hailcaesar
Andrew Koh
9/21/2023
AP CSP
Period 6
*/
//Libraries
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
if (argc != 2)
return 1;
// Convert the key from a string to an integer and check for non-numeric
input
int key;
if (!isdigit(argv[1][i]))
return 1;
key = atoi(argv[1]);
printf("ciphertext: ");
if (isalpha(plaintext[i]))
else
printf("%c", plaintext[i]);
printf("\n");
return 0;