Created
July 12, 2020 04:07
-
-
Save Abhayparashar31/62ff7cb461deabbcaab191059cd53fd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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