#include<stdio.h> int main() { int a, b; for(a = 0; a <= 9; a++) for(b = 0; b <= 6; b += 2) printf("%d%d%d%d ", a, a, b, 6 - b); return 0; }