Prog#014: Leap Year or not

/* 
Program#14
Leap Year or not
*/

#include <stdio.h>
main(){
int n,x;
printf("\nEnter a year : ");
scanf("%d",&n);
x=n%4;
if(x==0)
printf("\n%d : Leap year\n",n);
else
printf("\n%d : Ordinary year\n",n);
}