Need help on this one. :(

Discussion in 'C++' started by udtohan_noriel, Sep 1, 2010.

  1. udtohan_noriel

    udtohan_noriel New Member

    Sep 1, 2010
    Likes Received:
    Trophy Points:
    Guys, could someone help me to make a program that will display this not using if-else statement.

    I want to learn how to make it using for loop statement and any statement that will make this program short. I need 1 Program using for loop and another program but not if-else.

    Sample Output:

    Enter a number(0-25) : 7(Example of inputted number)

    0 - Zero
    1 - One
    2 - Two
    3 - Three
    4 - Four
    5 - Five
    6 - Six
    7 - Seven


    Thanks a lot. ;)

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice