Think about it this way.
You are drawing a square....yes a square. The square is devided from corner to corner. HINT You are drawing characters that the user can see and characters that the user can not see. HINT
Next it is as simple as decing how wide/tall you want your triangle to be.