help me out in this question is shows an error " error: ‘else’ without a previous ‘if’"
#include <stdio.h>
int main()
{
char charcter;
printf("enter any charcter from the keyboard\n");
scanf("%c",&charcter);
if ((charcter >='a')&&(charcter <='z'));
{
printf("the enter charcter is small alphabet\n");
}
else if((charcter >='A')&&(charcter <='Z'));
{
printf("the enter character is Capital letter\n");
}
else if((charcter >='0')&&(charcter <='9'));
{
printf("enter charcter is digit\n");
}
else
{
printf("yo enter the sppecial\n");
}
}
Aucun commentaire:
Enregistrer un commentaire