Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

odd numbers 1 to 100

#include <iostream>
using namespace std;
int main()
{
   

    cout << "odd numbers from 1 to 100 : ";
    for (int i = 0; i <= 100; i++)
    {

        if (i % 2 != 0)
        {
            cout << i << ",";
        }
    }
}
 
PREVIOUS NEXT
Tagged: #odd #numbers
ADD COMMENT
Topic
Name
8+8 =