#include<stdio.h> main(){ int a; int b[10]; int i; for(i=0;i<2;i++){ scanf("%d",&a); b[i]=a;} for(i=0;i<2;i++){ if(b[i]%4==0&&b[i]%100!=0||b[i]%400==0){ printf("Leap Year\n");} else {printf("Not Leap Year\n"); } } } |
Double click to view unformatted code.