leap year if else short hand

PHOTO EMBED

Mon Jan 31 2022 18:56:10 GMT+0000 (Coordinated Universal Time)

Saved by @m1racle23 #c

#include <stdio.h>

int main() {
    
     int year;
     printf("enter the year\n");
     scanf("%d" , &year);
     
     
     (year %4 ==0) ? (printf("the year is leap year")) : (printf("the year is not leap year"));
	//code
	return 0;
}
content_copyCOPY