Question: Consider the following program, and judge whether the three integer side lengths can form a triangle. This triangle can be general triangle, an isosceles triangle
Consider the following program, and judge whether the three integer side lengths can form a triangle. This triangle can be general triangle, an isosceles triangle or an equilateral triangle, and finally outputs the triangle type. [Note: The sum of the two sides is greater than the third side, and the absolute value of the difference between any two sides is less than the third side. It can form a triangle]
a) Draw the CFG of the program and calculate the full complexity. (Use code below)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
