Question: ------------------------------c++---------------------------------------c++----------------------------------------------c++-------------------------------------------- Question 4 (40 Points) Please create a triangle array that contains the edge lengths of a triangle as integers. Take an integer n from

------------------------------c++---------------------------------------c++----------------------------------------------c++--------------------------------------------
Question 4 (40 Points) Please create a triangle array that contains the edge lengths of a triangle as integers. Take an integer n from the user that represents the number of triangles and allocate dynamic memory for your triangles. Hint: You can allocate memory for your triangles by using malloc function Assign random numbers for the lengths of edges of the triangles. Your triangles must satisfy the following constraints: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
