Ok, I don't know why but it seems that almost everytime I try and make a program using if and/or else and execute it that it gives me an "error, must shut down" but I don't know why, this one is from the book(I just put in the #include and int main() and the scanf thing, here is the code if it will help:
thanks in advanceCode:#include <stdio.h> int age=0; int main() { printf("To find out if you are a minor, adult, or senior citizen please enter your age: "); scanf("%d", age); if( age < 18 ) printf("Minor"); else if( age < 65 ) printf("Adult"); else printf( "Senior Citizen"); }