Chapter 19: Problem 36
Find the output of the program given below. 10 REM Area of a triangle when the sides are given \(20 \mathrm{READ} \times, \mathrm{y}, \mathrm{z}\) 30 DATA \(8,15,17\) 40 Let \(S=(x+y+z) / 2\) 50 Let \(\mathrm{A}=\left[\mathrm{S}^{\star}(\mathrm{S}-\mathrm{x}) \star(\mathrm{S}-\mathrm{y}) \star(\mathrm{S}-\mathrm{Z})\right]^{1 / 2}\) 60 PRINT "The area \(=", A\) 70 END (1) 120 (2) 60 (3) 90 (4) The triangle is not feasible
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.