Spicyztrickz

Loot Tricks, Free Recharge Tricks, Paytm, Mobile Offer 2019, Unlimited Paytm Cash, Highest Paying Latest Apps & Websites. Best Deals Of The Day.

Check leap Year using Ternary operator


#include<stdio.h>
int main()
{
    int y;
    printf("Enter any Year To Check Leap Year Or not :");
    scanf("%d",&y);
    if((y%400==0)?:(y%100!=0)?(y%4==0)?1:0:0)
        printf("Leap Year");
    else
        printf("Not A Leap Year");

}
c

Post a Comment

[disqus]

MKRdezign

{facebook#https://www.facebook.com/12brahma/} {twitter#https://twitter.com/brahmasanidipak} {google-plus#https://plus.google.com/118318150044608348295} {pinterest#https://in.pinterest.com/spicyztrickz/} {youtube#YOUR_SOCIAL_PROFILE_URL} {instagram#YOUR_SOCIAL_PROFILE_URL}

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget