Question: How to write program in pseudocode import math def Heron(A,B,C): if (A > 0.0): if(B > 0.0): if(C > 0.0): S = (A+B+C)/2 AREA =

How to write program in pseudocode

import math

def Heron(A,B,C): if (A > 0.0): if(B > 0.0): if(C > 0.0): S = (A+B+C)/2 AREA = math.sqrt(S*((S-A)*(S-B)*(S-C))) return AREA else: return ("nonpositive number entered") else: return ("nonpositive number entered") else: return ("nonpositive number entered")

A = 3.0 B = 4.0 C = 5.0 print(Heron(A, B, C))

A = 5.0 B = 6.0 C = 7.0 print(Heron(A, B, C))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!