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 mode of reproduction is matched correctly with its description? 1.transduction-virus transfers genes from one bacteria to another 2.conjugation- involve
Please answer number 18
Explain why buildings are wired using parallel circuits rather than series circuits
what was the Chinese cultural revolution?
Explain why ocean temperatures vary by location on Earth’s surface.
protection of freedom of press
an expression for 6(7x-x)
The following balanced equation shows the formation of sulfur dioxide. S + O2 mc023-1.jpg SO2 How many moles of sulfur are needed to produce 15.0 mol of sulfur
What is an example of imagery based on the song lyrics above?
what multiplies to be 9 and adds to be 0