View Code of Problem 28

#include<iostream>

using namespace std;

int main(void){
	int m;
	while(cin >> m){
		if((m % 4 == 0 && m % 100 != 0)||(m % 400 == 0)){
			cout << "Leap Year"<<endl;
		}
		else{
			cout << "Not Leap Year" << endl;
		}
	}
}

Double click to view unformatted code.


Back to problem 28