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(){// Complete the code.stringnumber_str[11]={"one","two","three","four","five","six","seven","eight","nine","even","odd"};inta=0,b=0,idx=0;scanf("%d\n%d",&a,&b);for(inti=a;i<=b;i++){idx=(i>0&&i<10)?i-1:i%2+9;printf("%s\n",number_str[idx].data());}return0;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →