queenbaddest2021
queenbaddest2021 queenbaddest2021
  • 13-09-2021
  • Computers and Technology
contestada

Write a C++ program to read the base , height and values, calculate and print the area of triangle

Respuesta :

discipulus
discipulus discipulus
  • 20-09-2021

Answer:

#include <iostream>

using namespace std;

int main() {

int h, b; float A;

cout<<"Enter height and base : ";

cin>>h>>b;

A= (0.5)*h*b;

cout<<"Area of triangle is : "<<A;

return 0;

}

Answer Link

Otras preguntas

Which change results in the formation of different substances? (1) burning of propane (2) melting of NaCl (s) (3) deposition of CO2(g) (4) solidification of wat
Find the value of 15.0 Newton in pounds
the band members sold 316 juice drinks for a fundraiser. they sold 52 more grape drinks than strawberry drinks. how many of each type of juice drink did they se
Log (10-4x) = log (10-3x)
Given the balanced equation representing a reaction: Al2(SO4)3 +6NaOH ==> 2Al(OH)3 + 3Na2SO4 The mole ratio of NaOH to Al(OH)3 is (1) 1:1 (2) 3:1 (3) 1:3 (
True or False? The segments below could form a triangle. A________C is 9 C_____B is 4 B_______________A is 15
What did Susan B. Anthony do?
When do we celebrate Independence Day?
Name one branch or part of the government.
What major event happened on September 11, 2001, in the United States?