#include #include using namespace std; int main() { cout << "What is the current year? "; //try 2024 and 2022 int year {0}; cin >> year; if (!cin) { cerr << "Sorry, that wasn't a number.\n"; return EXIT_FAILURE; } cout << year << " is a "; switch (year % 4) { case 0: cout << "presidential, "; case 2: cout << "congressional, "; default: cout << "local "; } cout << "election year.\n"; return EXIT_SUCCESS; }