Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

image text in transcribed
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 algorithm and the # character. This exercise must be completed wilout 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. ll ll size For example 5 dcc -o danish_f|ag danish_f|ag.c S .fdanish_flag Enter the flag size: I ## ##### ## #####

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions