View Code of Problem 28

#include <stdio.h>
int main()
{
    int m,n,sum;
    scanf("%d",&m);
    if(m%4 == 0)
    {
        if(m%100 != 0)
        {
            printf("Not Leap Year\n");
        }
        else
        {
            if(m%400 == 0)
                printf("Leap Year\n");
            else
                printf("Not Leap Year\n");
        }
    }
    else
        printf("Not Leap Year\n");

}

Double click to view unformatted code.


Back to problem 28