#include <stdio.h> int main(){ int n; scanf("%d", &n); for (int i = 0; i < n; i++){ if(i % 2 == 0){ printf("%d\n", i); } } printf("\n"); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: