# make the program body the suite of a for statement for counter in range(10): n = counter + 1 if n % 2 == 0: result = '' for i in range(n): value = i + 1 if value % 2 == 0: result += (str(value) + ' ') print(result)