I'm new to C language and would like to ask help on how to fix the said error on Line 15: error: expected expression before 'else'.
Thank You!
#include<stdio.h>
int n;
main()
{
printf("Enter your age for qualification:");
scanf("%d", &n);
if (n >= 0 && n <= 100);
{
if (n <= 0);
{
printf("you're still in your mother's womb!");
}
else
{
(n >= 1 && n <= 17);
printf("you're too young! you're not qualified!");
}
if (n >= 18 && n <= 100) {
printf("you're qualified to vote");
} else {
(n >= 121);
printf("that's impossible! you're already dead!");
}
}
return 0;
}