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

In two to four sentences, describe how you would center text.
1. what expression is equivalent to z+6z?a. 5z+2zb. 3z+7zc. 12z-3z d. 16z - 10z2. which equations have 10 as a solution? circle all that apply.a. 4g=48 b. g+16=
I need help on this what's the answer for it 2/7 + 2/3 =
diabetes is mainly treated with insulin injections received several times a day. A. type 1 B. type 2
Three angles of a quadrilateral have the following measures: 60, 90, and 125. What is the measure of the missing angle. 75, 80, 85, and 90
Find the lateral area for the given cylinder used 3.14 for pie and round to the nearest whole number 24 yards in 6 yards
The distance between the sun and earth is about1.5 times10
the cell membrane is also called
Check each solution. Number 11
European competition for colonies, resources, and world markets through the use of militarism was one of the causes of __________. A. the Russian Revolution B.