PROGRAM :-
import math
a = int(input("Enter first value : "))
b = int(input("Enter second value : "))
GM = math.sqrt(a*b)
HM = (2*a*b)/(a+b)
print("Geometric Mean : ",round(GM,3))
print("Harmonic Mean : ",round(HM,3))
import math
a = int(input("Enter first value : "))
b = int(input("Enter second value : "))
GM = math.sqrt(a*b)
HM = (2*a*b)/(a+b)
print("Geometric Mean : ",round(GM,3))
print("Harmonic Mean : ",round(HM,3))
VIDEO LINK : -
Part A : Print Arithmetic Progression and Calculate Arithmetic Mean of the Series.
Part A : Print Arithmetic Progression and Calculate Arithmetic Mean of the Series.
Part B : Print Geometric Progression and Calculate Geometric Mean of the Series.
Part C : Print Harmonic Progression and Calculate Harmonic Mean of the Series.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.