Question: Fix this code, C + + . # include using namespace std; / / pre - processing int main ( ) { / / Briayan
Fix this code, C# include
using namespace std;
pre processing
int main
Briayan Student, Programmer
Program that computes the area of a triangle
declare and initialize the variables
double area base height ;
Input request and receive variable values
cout
please enter the base ;
cin base;
cout
please enter the height ;
cin height;
object height null;
Process perform any required variable assignment
area base height;
Output display values to the program user
cout
A triangle with base base;
cout and height height;
cout
;
cout
has an area of area;
cout square units." endl endl;
cout "press Enter to close this window
;
systempause; Windows command
return ;
#include
using namespace std;
pre processing directives
int main
Program that computes the area of a trapezoiddouble area base base height ;
Also, modify your input statements to include both bases.
cout
please enter the base ;
cin base;
cout
please enter the base ;
cin base;
cout
please enter the height ;
cin height;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
