We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Conditional Statements
- Discussions
Conditional Statements
Conditional Statements
Sort by
recency
|
853 Discussions
|
Please Login in order to post a comment
include
include
using namespace std;
int main() { int x; cin >> x; string kq =(x==1)? "one" : (x==2)? "two" : (x==3)? "three" : (x==4)? "four" : (x==5)? "five" : (x==6)? "six" : (x==7)? "seven" : (x==8)? "eight" : (x==9)? "nine" : "Greater than 9"; cout << kq << endl; }
`