Saturday, October 24, 2020

c program to check whether the given year is a leap year

#include <stdio.h>

int main() {

    int y;

    printf("Enter year:");

    scanf("%d",&y);

    if(y%4==0)

    {

        printf("%d is a leap year",y);

    }

}

No comments:

Post a Comment

POV: I finally understood why every elder brother is a hero ❤️

YouTube Video  Hi. So, uh very happy brother's day to all the lovely brothers out there who has been endlessly working on and uh taking ...