Quick actions

cmd+k|ctrl+k

Navigation

Languages

Cornaldo Problem

Snippet info

Language

Cpp

Visibility

public

Author

creditfool

Created

2020-07-23T11:49:47Z

Updated

2020-07-23T11:49:47Z

#include <iostream>
using namespace std;

int main() {
    
    int i = 2;
    while (i < 20) {
        cout << i << ' ';
        i += 2;
    }
    while (i >= 2) {
        cout << i << ' ';
        i -= 2;
    }
}
INFO