#include<iostream.h>
#include<conio.h>
#define print cprintf("Raman")
typedef int color;
enum eco
{
blue=1,green,yellow=14
};
void main()
{
color code;
clrscr();
cout<<"\n 1.Blue\n 2.Green\n 14.Yellow";
cout<<"Enter the code";
cin>>code;
while(code>=blue && code<=14)
{
textcolor(code);
switch(code)
{
case blue:
print;break;
case green:
print;break;
case yellow:
print;break;
}
cout<<"\n Enter code";
cin>>code;
}
getch();
}
Comments
Post a Comment