printing the area of a triangle to the console