No products in the cart.

Write a program to calculate the …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a program to calculate the area of triangle using def function
  • 8 answers

Shaily Jain 5 years, 3 months ago

def triangle(l, b, h) : result=1/2*l*b*h print(result) l=int(input("enter the length")) b=int(input("enter the breadth")) h=int(input("enter the height")) triangle(l,b,h)

Aman Kumar 5 years, 3 months ago

This will definitely run...sirf identation manage kar lena

Aman Kumar 5 years, 3 months ago

Def tri(a,b): ....Y=0.5 * a * b ..... .......Return Y a=int(input("enter a Base:- ")) b=int(input("enter a Height:- ")) ...print(tri(a,b))

Aman Kumar 5 years, 3 months ago

Aree yar...tune phele answer de diya....?????koi nhi ...very nice
oops!!! there is some error... pls edit this a = int(input('Enter first side: ')).... b = int(input('Enter second side: '))...... c = int(input('Enter third side: ')) actually I forget to put int in those statement.
might be this but I am not sure.. ?
def main():______ a = (input('Enter first side: '))____ b = (input('Enter second side: '))___ c = (input('Enter third side: '))____ def area():____ # calculate the sides____ s = (a + b + c) / 2____ # calculate the area area = (s*(s-a)*(s-b)*(s-c)) ** 0.5____ area()

Aman Kumar 5 years, 3 months ago

Yeh...its easy wait I m givung
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 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