Prog#023: Leap Year or not

/* 
Program#23
Leap Year or not
*/

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