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

Stop Saying “You’re Asking Me” — Say “We’re Discussing It” ❤️

Right. So um I just realized one thing that um I have been trying to implement in my life also that uh whenever I'm discussing something...