/* Example check if leap year in C language */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <stdbool.h> int main(int argc, char *argv[]) { int year = 2020; if(year% 4 == false && year%100 != false || year%400 == false) { // is a leap year printf("ss"); } else { // isn't a leap year } return 0; }