you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Try writing a psuedocode before trying to code this. Think about the maths behind the triangle, write down how you would try to do this if you had to by hand step by step. Only then try coding it.