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

Relax

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

An integer for 9 steps forward
What is the [h3o ] in a buffer that consists of 0.30 m hcooh and 0.20 m hcoona? ka = 1.7 × 10-4 i just need the steps to do it, not the answer ?
Is 0.25 rounded to 0.3
Which group 2a element has the largest ionic radius?
According to the shaded areas on the map, the Assyrian Empire was located? A. south of the Red Sea. B. north of the Black Sea. C. in the Middle East. D. in Euro
924,013 round to the nearest ten thousand
Simplify (–6x) ÷ (–2)
which of the following describes the relationship between elements of an ecosystem
What is the difference between sexual reproduction and asexual reproduction in plants?
Jerome is making prizes for a game at the school Fair. He has two bags of different pins, one with 15 Square pins and one with 20 round pins. Every prize will h