You are viewing a single comment's thread. Return to all comments →
using namespace std; int main() {
int n=0; cin>>n; if(n>=1&&n<=pow(10,9)) { if(n>=1&&n<=9) { if(n==1) cout<<"one"<<endl; else if(n==2) cout<<"two"<<endl; else if(n==3) cout<<"three"<<endl; else if(n==4) cout<<"four"<<endl; else if(n==5) cout<<"five"<<endl; else if(n==6) cout<<"six"<<endl; else if(n==7) cout<<"seven"<<endl; else if(n==8) cout<<"eight"<<endl; else cout<<"nine"<<endl; } else { cout<<"Greater than 9"<<endl; } } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Conditional Statements
You are viewing a single comment's thread. Return to all comments →
include
include
using namespace std; int main() {
}