Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Abhayparashar31/62ff7cb461deabbcaab191059cd53fd6 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/62ff7cb461deabbcaab191059cd53fd6 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
// Write Your Code Here
if(n==1)
{
printf("one");
}
else if(n==2)
{
printf("two");
}
else if(n==3)
{
printf("three");
}
else if(n==4)
{
printf("four");
}
else if(n==5)
{
printf("five");
}
else if(n==6)
{
printf("six");
}
else if(n==7)
{
printf("seven");
}
else if(n==8)
{
printf("eight");
}
else if(n==9)
{
printf("nine");
}
else if(n>9)
{
printf("Greater than 9");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment