Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can somebody post program FOR DISPLAYING EVEN AND ODD NUMBERS UPTO 100 IN C++?

3 Answers

Relevance
  • roger
    Lv 7
    5 years ago

    you want to display all the even and odd numbers from 0 to 100?

    int x=0;

    for(;x<=100;x++)

    cout << x;

  • justme
    Lv 7
    5 years ago

    Did you try it yet? Its pretty simple.

  • John
    Lv 5
    5 years ago

    what other kind of numbers are there................

Still have questions? Get your answers by asking now.