No products in the cart.

write a function called calculate_area() that …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

write a function called calculate_area() that takes base and height as input arguments and returns area of a triangle as an output. The formula used is: Triangle area= 1/2*base* height
  • 2 answers

Ankit Singh 4 years, 4 months ago

Is mine answer clear to you. by the way in which school you study.

Ankit Singh 4 years, 4 months ago

def calculate_area(base, height) Area=(1/2)*(base)*(height) return Area B=eval(input("Enter the base of triangle : ") H=eval(input("Enter the height of triangle : ") Are = (calculate_area(B,H)) print ("Area of triangle = ",Are)
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App