#include int main() { enum color {red,green,yellow}; enum color crayon = red; // crayon is declared to be of type // color and initialized to red cout << "\nThe color is " << crayon << endl; cout << "Enter in a value: "; cin >> crayon; if (crayon == red) cout << "The crayon is red." << endl; else if (crayon == green) cout << "The crayon is green." << endl; else if (crayon == yellow) cout << "The crayon is yellow." << endl; else cout << "The color is not defined.\n" << endl; return 0; }