need a cooment for looping

Discussion in 'C++' started by noobc++, Sep 30, 2006.

  1. noobc++

    noobc++ New Member

    Sep 30, 2006
    Likes Received:
    Trophy Points:
    i have a problem in displaying the even value. i try to do the exercise in asking the user of the value of x and the value of y. then, showing the value bettween x and y. in between the value x and y there suppose to be an even and odd number.
    for exampe if the value x = 1 and the value of y = 5. then it will write 12345. (i done this). but, i have the problem in showing the even value between x and y . i use for loops for showing the 12345 and then i confused for showing the even value. i know the formula would be value*2..

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