#include<stdio.h>
int main(void) {
int userAge;
printf("How old are you?");
scanf("%d" , userAge);
if(userAge < 18) {
printf("You cannot vote. You are too young.");
} else {
printf("You are old enough to vote".)
getchar();
getchar();
}
I tried to compile and run this, but whenever I input my age it crashes. Anyone see what I did wrong?