#include <iostream>
using namespace std;

int main() {
   cout << "Enter an integer for the month (January = 1, February = 2, etc.): ";
   int month;
   cin >> month;
   if (month >= 1 && month <= 12) {
      cout << "\n" << month << " is a valid month." << endl;
   } else {
      cout << "\n" << month << " is not a valid month." << endl;
   }

   return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: