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

7/8 - 5/12 ayudaaa por favor es para mañana​
I NEED HELP ASAPPPP 6 Consider this right triangle. 15 12 B Enter the measure of ZC AB to the nearest hundredth degree.
please helpp, its just true or false
yo factor x6 - 2x4 + x2 - 2. ( x2 + 2)( x4 - 1) x4 ( x2 - 2) ( x4 + 1)( x2 - 2)
This is a steel penny from 1943. A steel penny will weigh 2.72 g and is magnetic. This penny weighs 2.74 grams and sticks to a magnet. Therefore, this is likel
PLEASE ANSWER FAST WILL MARK BRAINLYEST THIS IS DUR IN A HOUR You have three options for this assessment. Each option is related to one of the topics you finis
Follow these steps to solve this problem: Two identical loudspeakers, speaker 1 and speaker 2, are 2.0 mm apart and are emitting 1700-HzHz sound waves into a ro
The pair of shoes you want is on sale for 25% off. If the shoes originally cost $65, how much is the sale price
([tex]( \frac{1}{x} ) {}^{0} [/tex]​
For a large order, Mr. Magoo made 3/8 kg of fudge in his bakery. He then got 1/6 kg from his sister’s bakery. If he needs a total of 1 1/2 kg, how much more fud