//numeros pares del 0 al 100//
#include <iostream>
using namespace std;
int main() {
    //metodo principal
    int n;
    cin >> n;
    for(int p=2; p<= 100; p+=2) {
        cout << p << " ";
        
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: