CodeSolved

A comprehensive source of programming questions and exercises

Calculate the area of ​​the triangle

Practice Easy 253/ Download 2015 Views

Write a program that receives the rule and height of the triangle and calculates its area

Triangle area = (rule * height) divided by 2

18 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.
base =int(input("enter the base:"))
height=int(input("enter the height:"))
result=base*height
result2=result/2
print(result2)
Roghaye.m Download Python
a = int(input("number1:"))
y = int(input("number2:"))
print((a * y) / 2)
Mohamad Download Python
ghaedeh = int(input("enetr your number:"))  # A number of input for the rule
ertefah = int(input("enter your number:"))   # A number of entrances for height
masahat = (ghaedeh * ertefah) / 2  # Triangle area
print(f"masahat:{masahat}")
g=float(input('gaede:'))
e=float(input('ertefa:'))
print(int(g*e/2))
Maryam.n Download Python
# Triangle area
i=int(input("ghahede: "))
y=int(input("ertefah: "))
print((i*y)/2)
Saleh1391 Download Python
h = float(input('hight: '))
b = float(input('base: '))
s = (b * h)/2
print(f'area of triangle is: {s}')
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close