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

Battery packs in radio-controlled racing cars need to be able to last pretty long. The distribution of the lifetimes of battery packs made by Lectric Co. is sli
Do all cells break down food into energy?
Write an equation in point-slope form of the line that passes through point (3, 5) and has a slope of – 4.
20x100/2???????????????????????????????????????????????????????????????????????????????
____ is the majority of the piece and the support that backs up the thesis. The data The claim The evidence The conclusion
If karen and beth are pretty typical of most children, they will have a preference for friends and playmates of ________.
Which is the BEST thesis statement for paragraph 11? No one is giving Peter Gudge respect in this hurried, bustling city Peter was able to overcome his destitu
Which president depicted on mount rushmore is wearing glasses
Write 502,900 in expanded form.
what is an equation of the line that is parallel to y=3x-8 and passes through (1,8)