Need help on this one. :(

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

  1. udtohan_noriel

    udtohan_noriel New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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