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.
intmain(){/* Enter your code here. Read input from STDIN. Print output to STDOUT */inta,b;std::vector<std::string>words={"zero","one","two","three","four","five","six","seven","eight","nine","even","odd"};scanf("%d\n%d",&a,&b);for(inti=a;i<=b;i++){if(i>9){if(i%2==0)cout<<words[10+i%2]<<endl;elsecout<<words[10+i%2]<<endl;}else{cout<<words[i]<<endl;}}return0;}
For Loop
You are viewing a single comment's thread. Return to all comments →