#include <stdio.h> int main() { int leap_year(int year); int year; printf("please enter year:"); scanf("%d",&year); leap_year(year); return 0; } int leap_year(int year) { if((year%400==0)||((year%4==0)&&(year%100!=0))) printf("leap year\n"); else printf("not leap year\n"); }