Conditional Statements

  • + 0 comments

    string nums[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};

    if (n >= 1 && n <= 9)
    cout << nums[n-1];
    else
    cout << "Greater than 9";