Write a program to input a number for the height l or r forwhether the hypoteneuse is on the left or right and then to printout a right triangle ofasterisks. The first output sould show a trianglefirst with 5 asterisks then 4 3 2 1 with the trianggledeclining to the right as the numbers ggo lower. (Height (5); withthe hypoteneuse to the (l). The second output is another triangle;height (9); hypoteneuse (r).