Calculate the area of the rhombus
Write a program that receives a large and small rhombic diameter and calculates the rhombus area.
Ringe area = large diameter * small diameter ÷ 2
Write a program that receives a large and small rhombic diameter and calculates the rhombus area.
Ringe area = large diameter * small diameter ÷ 2
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
def rhombus(big_diameter,small_diameter):
area=(big_diameter*small_diameter)
return area
first_data=float(input("enter the small diameter>>>>"))
second_data=float(input("enter the big diameter>>>>"))
rhombus_area=rhombus(second_data,first_data)
print(rhombus_area)
ghotrbb = int(input("enter your number:"))
ghotrkk = int(input("enter your number:"))
masahat = (ghotrbb * ghotrkk) / 2
print(f"masahat louzi:{masahat}")
ghotr_bozorg = int(input("Ghotr bozorg lozi ra vared konid: "))
ghotr_kochik = int(input("Ghotr kochak lozi ra vared konid: "))
print(ghotr_bozorg*ghotr_kochik/2)
gb=float(input("gb"))
gk=float(input("gk"))
mas=((gb*gk)/2)
print(mas)
small_diameter=float(input("enter the small diameter>>>>"))
big_diameter=float(input("enter the big diameter>>>>"))
rhombus_area=(big_diameter*small_diameter)/2
print(rhombus_area)
big_diagonal=int(input("big diagonal:"))
small_diagonal=int(input("small diagonal:"))
result=big_diagonal*small_diagonal
result2=result/2
print(result2)
larged = int(input("larged: "))
smalld = int(input("smalld: "))
masahat = larged * smalld / 2
print("masahat: " , masahat)
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.