Question: // File Name: 1170_8_7b.cc // This program prints a right triangle. // Both the height and the character used to draw the // triangle are

 // File Name: 1170_8_7b.cc // This program prints a right triangle.

// File Name: 1170_8_7b.cc // This program prints a right triangle. // Both the height and the character used to draw the // triangle are supplied through the standard input. // The standard input is redirected to the data file. #include using namespace std; // declare the function prototype for "DrawTriangle" here Write function prototype int main() { //local variables int height; //the height of the triangle char character; //the character used in drawing the triangle cout > height; cout > character; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!