Computers and Technology, 16.10.2020 18:01 derrekdream123
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width.
#include
int main(void) {
int arrowBaseHeight = 0;
int arrowBaseWidth = 0;
int arrowHeadWidth = 0;
printf("Enter arrow base height:\n");
scanf("%d", &arrowBaseHeight);
printf("Enter arrow base width:\n");
scanf("%d", &arrowBaseWidth);
printf("Enter arrow head width:\n");
scanf("%d", &arrowHeadWidth);
printf("\n");
// Draw arrow base (height = 3, width = 2)
printf( "**\n");
printf( "**\n");
printf( "**\n");
// Draw arrow head (width = 4)
printf( "\n");
printf( "***\n");
printf( "**\n");
printf( "*\n");
return 0;
}
a. Modify the given program to use a loop to output an arrow base of height arrow_base_height.
b. Modify the given program to use a loop to output an arrow base of width arrow_base_width.
c. Modify the given program to use a loop to output an arrow head of width arrow_head_width.
Answers: 1
Computers and Technology, 22.06.2019 01:50, bessieyounger1211
Click on this link toopens a new window. bring up a flowchart in a new browser window. based on this flowchart, would a d-link 3347 gateway with an xbox 360 multiplayer problem be in scope or out of scope
Answers: 2
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arro...
History, 08.06.2021 19:10
Mathematics, 08.06.2021 19:10
History, 08.06.2021 19:10