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

A student inflates a balloon with helium then places it in the freezer. The student should expect
How do you say how are you in french?
Which is NOT an example of conduction? A. hot tea warming the cup it is in B. blowing on the hot tea to cool it off C. burning your tongue on the hot tea
IT IS B !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I need help with these questions.
Hailey has 9 Spirit wear tops and 4 pairs of jeans. How many ways can she pair a top with a pair of jeans?
You have a function that takes in an X value and produces a Yvalue. The y value equals 24 times the x value, plus 4 more.What's the y value when the x value equ
Budding and sporulation are forms of _______ reproduction.
If the length of AC equals 72, what is the length of the midsegment DE?
The laws of refraction and reflection are the same for sound and for light.? The speed of sound is 340 m/s in air and 1510 m/s in water. If a sound wave that is