Enum
Enum or Enumeration is a user-defined special datatype that contains collection of constant values. Just because all the value stored inside Enum is constanct we cannot change its value and every value will be a read-only one. We'll discuss all about those with code examples
CODE
EG 1 . Creating an Enum called Weekdays.
#include <iostream>
using namespace std;
enum weekdays {
    Monday, Tuesday, Wednesday, Thursday, Friday
};
int main() {
    weekdays today = Wednesday;
    if (today == Monday) {
        cout << "Do Monday Works" << endl;
    }
    else if (today == Tuesday) {
        cout << "Do Tuesday Works" << endl;
    }
    else if (today == Wednesday) {
        cout << "Do Wednesday Works" << endl;
    }
    else if (today == Thursday) {
        cout << "Do Thursday Works" << endl;
    }
    else if (today == Friday) {
        cout << "Do Friday Works" << endl;
    }
}
EG 2 . Creating an Enum called Seasons.
#include <iostream>
using namespace std;
enum Seasons {
    Winter, Spring, Summer, Fall
};
int main() {
    Seasons thisMonth = Summer;
    if (thisMonth == Winter) {
        cout << "The Average temperature is 27°C" << endl;
    }
    else if (thisMonth == Spring) {
        cout << "The Average temperature is 30°C" << endl;
    }
    else if (thisMonth == Summer) {
        cout << "The Average temperature is 34°C" << endl;
    }
    else if (thisMonth == Fall) {
        cout << "The Average temperature is 32°C" << endl;
    }
}
(Click Here, For more exercises)