I am getting an error saying "ELSE w/o a previous IF." I am kind of new to C and I can't figure out what is wrong with my formatting. Thanks in advance
if( n< 0 && check > 0); //check to make sure that number isn't negative and resets three times
{
printf("Positive numbers only, negative numbers don't have factorials");
printf("You have ", check, " more attempts")
check --;
}
else;
{
end
}
return n;
Aucun commentaire:
Enregistrer un commentaire