Computer Science, asked by Koushik16, 1 year ago

Write a basic program to calculate the area of a triangle whose base and altitude are given.

Answers

Answered by shrestha3
3
(1/2) x base x altitude

Koushik16: please give me full program
shrestha3: what type of program
Koushik16: basic program in GW-BASIC
siddhartharao77: In which Programming language do u want?
Koushik16: GW-BASIC
siddhartharao77: CLS
Input "Enter breadth" ;b
Input "Enter height" ;h
Area = 1/2*b*h
Print" Area of triangle=" ;Area
End
Answered by siddhartharao77
1
CLS
Input "Enter breadth" ;b
Input "Enter height" ;h 
Area = 1/2*b*h
Print" Area of triangle=" ;Area
End 
Similar questions