I keep getting an error on the last else idk what's wrong with that code.
#include <cs50.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int main(int argc, string argv[])
{
int key = atoi( argv[1]);
string text= get_string("text:");
{
for (int i = 0; i <strlen(text); i++)
{
if (isupper (text[i]))
{
printf("%i", (((text[i] - 'A') + key) % 26) + 'A');
}
else if (islower (text[i]))
{
printf("%i", (((text[i]- 'a')+ key) % 26) + 'a');
}
else
{
printf("%i ", text[i]);
}
}
printf("\n");
return 0;
}
else
{
printf("Usage: ./Caesar\n");
return 1;
}
}