I am working on pset2, caesar.c, and I am currently getting the error message below:
caesar2.c:32:9: error: expected expression
else if (islower(plaintext[i]));
^
caesar2.c:38:9: error: expected expression
else
^
2 errors generated.
Below is my code and I can't figure out why I'm getting the error message. I've checked all my syntax, but I don't know where to go from here. Any advice/suggestions would be most appreciated!
Thank you!
// Checks if [i] is upper case and ciphers
if (isupper(plaintext[i]));
{
// INSERT FORMULA for upper case
}
// Checks if [i] is lower case and ciphers
else if (islower(plaintext[i]));
{
// INSERT FORMULA for lower case
}
// Reprints non-alpha as is
else
{
printf("%c", plaintext[i]);
}