Using loop variable write the numbers 1-10 vertically, please help?

Hello, I need help with c++. I need to writre numbers 1-10, vertically, using a loop. Idk how to do this, plz give me a simple program using loop to do this

1 Answer

  • justme
    Lv 7
    6 years ago
    Favorite Answer

    Seems pretty simple.

    You need a loop.

    Make it count from 1 to 10 inclusive.

    In that loop, write out the number.

    Oh, and dont forget the newline after each one!

    Not too difficult is it?

    • Login to reply the answers
Still have questions? Get your answers by asking now.