Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

evennumbers 1 to 100

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

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

        if (i % 2 == 0)
        {
            cout << i << ",";
        }
    }
}
 
PREVIOUS NEXT
Tagged: #evennumbers
ADD COMMENT
Topic
Name
3+5 =