Code:
#include <stdio.h>
int main()
{
int age; /*I want to kill this language*/
printf("Please enter your age\n");
scanf("%d", &age); {
if (age < 100){
printf("Youre young.");
}
else if (age == 100){
printf("Youre old as dirt.");
}
else {
printf("This is pointless\n");
}
return 0;
}
}
My problem isnt compiling the damn thing its executing it, whenever I run it and input a variable it does nothing and when I hit enter the return 0; closes it. I am a complete noob at C so what am I doing wrong?


