View Code of Problem 28

#include<bits/stdc++.h>

using namespace std;

int main() {
    int n;
    while(cin>>n){
        if((!(n%4) && (n % 100)) || !(n %  400))
            printf("Leap Year\n");
        else
            printf("Not Leap Year\n");
    }
    return 0;
}
/*
Main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
 #include<bits/stdc++.h>
         ^~~~~~~~~~~~~~~
compilation terminated.
*/

Double click to view unformatted code.


Back to problem 28