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.
// Complete the code.for(inti=a;i<=b;i++){if(i==1)printf("one\n");elseif(i==2)printf("two\n");elseif(i==3)printf("three\n");elseif(i==4)printf("four\n");elseif(i==5)printf("five\n");elseif(i==6)printf("six\n");elseif(i==7)printf("seven\n");elseif(i==8)printf("eight\n");elseif(i==9)printf("nine\n");elseif(i>9){if(i&1)printf("odd\n");elseprintf("even\n");}}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop in C
You are viewing a single comment's thread. Return to all comments →