#include <iostream> #include <cstdlib> using namespace std; int main() { for (int year {1890}; year <= 1910; ++year) { cout << year << " "; if (year % 400 == 0) { //a year such as 1600 or 2000 cout << "L"; //leap year } else if (year % 100 == 0) { //a year such as 1800 or 1900 cout << "N"; //non-leap year } else if (year % 4 == 0) { //a year such as 2020 or 2024 cout << "L"; //leap year } else { cout << "N"; //non-leap year } cout << "\n"; } return EXIT_SUCCESS; }