📜  c++hackerrank 解决方案中的 for 循环 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:57.314000             🧑  作者: Mango

代码示例1
#include
using namespace std;
int main()
{
    int a,b;
    string c[]={"","one","two","three","four","five","six","seven","eight","nine"};
    cin>>a>>b;
    for(int i=a;i<=b;i++)
        cout<<((i<=9)?c[i]:((i%2==0)?"even":"odd"))<