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

Four students were discussing how to find the unit rate for a proportional relationship.Which method is valid?
What’s the correct answer for this?
Which is an example of mechanical weathering
What is the official language of the United States?
Todd Mountain Development Corporation is expected to pay a dividend of $3 in the upcoming year. Dividends are expected to grow at the rate of 7% per year. The r
Find the inverse of the function y= (x-4)3 y = 3x - 4 y = x +4 X y = - +4 3 y = x +4
If h = 85 cm and 1 = 36 cm, what is the length of g? A. 77 cm B. 92 cm C 49 cm D 75 cm
Liz flips a coin 40 times. The coin lands heads up 28 times and tails up 12 times. Complete eachstatement ​
How do you determine the acceleration and speed from a graph?
POSSIBLE POINTS: 1 T-cells and B-cells that recognize previously encountered pathogens, and antibodies produced in response to a bacteria are considered........