pset2/caesar/caesar.c
char enc(char c, int k)
{
    // shift sets the distance to zero for the upper and the lower case letters
    char shift = 65;
    if (islower(c))
    {
        shift = 97;
    }
    return ( ((c - shift + k) % 26) + shift  );
}
// this function encrypts single character c with a key k and returns the encrypted char
this function encrypts single character c with a key k and returns the encrypted char
this function encrypts single character c with a key k and returns the encrypted char
char enc(char c, int k)
{
    char shift = 65;
    if (islower(c))
    {
        shift = 97;
    }
    return ( ((c - shift + k) % 26) + shift  );
}
char enc ( char c , int k ) { char shift = 65 ; if ( islower ( c ) ) { shift = 97 ; } return ( ( ( c - shift + k ) % 26 ) + shift ) ; }
this function encrypts single character c with a key k and returns the encrypted char
this function encrypts single character c with a key k and returns the encrypted char
// shift sets the distance to zero for the upper and the lower case letters