#include<iostream>
using namespace std;
int main(){
cout<<"Enter a number:\n";
int n;
cin>>n;
switch(n){
case 0 ... 4:
cout<<"Blue\n";
break;
case 5 ... 10:
cout<<"Red\n";
break;
case 11 ... 14:
cout<<"Green\n";
break;
default:
cout<<"Not a correct color option\n";
}
}
Comments
Leave a comment