CodeSolved

A comprehensive source of programming questions and exercises

The calculation of the trapezoidal area

Practice Easy 271/ Download 961 Views

Write a program that receives the rule and the height of the trapezoidal and calculates the trapezoidal area of ​​the vertical.

Area = rule * height ÷ 2

13 Answers

This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
a = float(input("meghdar ghaede ra vared conid:"))
b = float(input("meghdar ertefa ra vared conid:"))
sum1 = a * b
sum2 = sum1 / 2
print(sum2)
User 2730 Download Python
a = float(input("a: ")) # Our little rule
b = float(input("b: ")) # Our great rule
h = float(input("h: ")) # Our height
print((a + b)*(h)%(2)) # The sum of the small and large multiplication of multiplication in height divided by two
User 2752 Download Python
def area():
    """
    محاسبه مساحت ذوزنقه
    """
    Great = int(input("please enter the great :"))
    Height = int(input("please enter the height :"))
    res = (Great*Height)/2 
    return f"result : {res:.2f}" # Displaying output with two decimal digits
print(area())
base =int(input("enter the base:"))
height=int(input("enter the height:"))
result=base*height
result2=result/2
print(result2)
Roghaye.m Download Python
q=int(input("Enter qaede: "))
e=int(input("Enter ertefa: "))
masahat=e*q/2
print(masahat)
Feribanoo Download Python
s=float(input('قاعده را وارد کنید: '))
h=float(input('ارتفاع را وارد کنید'))
m=s*h/2
print('مساحت برابر است با: ',m)
Pooroo Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close