Answered You can hire a professional tutor to get the answer.

QUESTION

In this task, you will create a program called danish_flag.c which will read in a size and display a Danish Flag of that size using the following...

Hi, i am wondering how to write C progam for this question

In this task, you will create a program called danish_flag.c which will read in a size and display a Danish Flag of that size usingthe following algorithm and the # character. This exercise must be completed wifllout Arrays. The Danish Flag is made up of 6 blocks. It is 3 blocks wider and 2 blocks high. To display it using empty spaces and the character it,we will read in a value called size. Each block will be 3 times size wide, and 2 times size high. - In the top left block, the right column and bottom row will be empty spaces. - In the top middle block, the left column and bottom row will be empty spaces.- In the top right block. the bottom row will be empty spaces. - In the bottom left block. the right column and top row will be empty spaces. - In the bottom middle block. the left column and top row will be empty spaces.- In the bottom right block, the top row will be empty spaces. - Every other position will be the 4': character. See the diagram below for details. lll—l size For example 5 dcc -o danish_f|ag danish_f|ag.cS .fdanish_flag Enter the flag size: I ## ##### ## #####
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question