well , mr. lanard explained , first you have to set up the parameters of what defines each type of triangle , then write corresponding if-then statements based on what the user answers to the length of each side of the triangle .