#include <stdio.h>int main() { int year = 0; printf("Please input the year to be validated\n"); scanf("%d", &year); if ((year % 4 == 0 && year % 100 != 0) || $year % 400 ) { printf("Year is leap.\n"); } else { printf("Year is not leap\n"); } return 0;}
Comments