fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. const string number[] = {"Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"};
  6.  
  7. int main() {
  8.  
  9. int i = 5;
  10. std::cout << i << " is a " <<number[i];
  11. return 0;
  12. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
5 is a Five