Triangle printing program