I'm trying to compile this code into miracle c compiler and I'm having problems, I appreciate if somebody help me with any mistakes in the code or write down the correct one. thanks..
Code:
#include <stdio.h>
void main (void)
{
int age = 0;
printf("Please enter your age:");
scanf("%d",&age);
}
int difference = age - 18;
if(difference < 0)
printf("\nI’m sorry, you are too young to vote.");
else
printf("\nYou can vote!");
}
Comment