Question: fix function: void draw _ equilateral ( char art [ DIM ] [ DIM ] , int side, int x , int y ) {
fix function:
void drawequilateralchar artDIMDIM int side, int x int y
int height staticcastroundsqrt side;
for int row ; row height; row
int rowhalfwidth staticcastroundstaticcastrow hei
ghtside ;
int leftbound x rowhalfwidth;
int rightbound x rowhalfwidth;
for int col leftbound; col rightbound; col
if y row DIM && col && col DIM
arty rowcol FILL;
considering;
const int DIM ; const char FILL @; const char EMPTY ;
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
