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

Help me with questions 1, 2, and 3
The density of a mixture measures 1015.3 kilograms per cubic meter. Use scientific notation to represent the density of the mixture?
Is 42 a multiple of 3
How is a dog similar to a baseball player?
Solve for x. ­a = bx A) (­-b)\a B) b -­ a C) (­-a) + b D) (­-a)/b
what is the definition of geoscience processes?
when you cross or enter traffic from a full stop, how much space should you allow on city streets? on the highway?
When an enzyme is functioning at vmax, the rate of the reaction is limited by?
How to write equal to or greater than in word?
Is dirt abiotic or biotic