This is a program for checking the leap year. Could you kindly tell me why I'm getting this error?
#include <stdio.h>
int main()
{
int year=0;
printf("Enter the year to be Validated \n");
scanf("%d",year);
if (year%4==0){
printf ("one");
if (year%100==0){
printf ("two");
if (year%400==0){
printf("Leap Year");
}
else{
printf("Non Leap year");
}}}
return 0;
}