#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main( ) { int n; for(int y; y<(y+1); y++) { cin >> n; if ((n%100!=0 && n%4==0) || (n%400==0)) { cout << "Leap Year"<<endl ; } else { cout << "Not Leap Year" <<endl ; } } return 0; } |
Double click to view unformatted code.