Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
using namespace std; enum Level { LOW = 1, MEDIUM, HIGH }; int main() { enum Level myVar = MEDIUM; switch (myVar) { case 1: cout << "Low Level"; break; case 2: cout << "Medium level"; break; case 3: cout << "High level"; break; } return 0; }
Medium level