égal à 1 à 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 << ",";
        }
    }
}
Omar Elhbrouk