#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if( 1<=n<=9)
{
switch(n)
{
case 1:cout<<"one"; break;
case 2:cout<<"two"; break;
case 3:cout<<"three"; break;
case 4:cout<<"four" ;break;
case 5:cout<<"five" ;break;
case 6:cout<<"six" ;break;
case 7:cout<<"seven"; break;
case 8:cout<<"eight" ;break;
case 9:cout <<"nine";
}
}
else
{ cout<<"greater than nine"; }
}
the above code when i am running (or)compiling my else statement is not working for example if i am giving a number like 44 it is not displaying the statement in else that it is grater than nine but the if case is working nicely.