6/2/21

C Program to Find that Given Year is a Leap Year Or Not.

Program to Find that Given Input is a Leap Year Or Not.

#include<stdio.h>
void main ()
{
int y;
printf ("Enter Any Year ");
scanf("%d",&y);
if (y%4==0)
    if (y%100==0)
        if (y%400==0)
            printf("Leap Year");
        else
        printf("Not Leap year");
    else
    printf("Leap Year");
else
printf("Not Leap Year");
getch();
}

Output:- 




"+y+""}else{if(A==5){c+='
  • '+w+""+y+"
  • "}else{if(A==6){c+='
  • "+w+'
    '+u+""+y+"
  • "}else{c+='
  • "+w+"
  • "}}}}}s.innerHTML=c+=""+y;d.callBack()};randomRelatedIndex=h;showRelatedPost=g;j(d.homePage.replace(/\/$/,"")+"/feeds/posts/summary"+e+"?alt=json-in-script&orderby=updated&max-results=0&callback=randomRelatedIndex")})(window,document,document.getElementsByTagName("head")[0]); //]]>

    0 comments:

    Post a Comment

    Follow on Twitter

    Linkedin

    Categories

    Mad About Computer. Powered by Blogger.
    This site is in no way affiliated with or endorsed by specified business. It exists as a compendium of supporting information intended for informational purposes only. If you want to buy this website, please don't hesitate to contact us via e-mail: "d e n a c c 9 7 7 (at) g m a i l (dot) c o m" (delete spaces) or you can find and buy it on Afternic domain auctions.