subject
German, 31.10.2021 22:30 cuhh

Write a program that produces an ASCII art representation of an hourglass using nested for loops. Use a class constant to make it possible to change the height of the hourglass. Output when a class constant named SIZE is set to a value of 2:

||
\ /
\ /
||
/::\
/\
||

Output when a class constant named SIZE is set to a value of 3:

||
\ /
\ /
\ /
||
/::\
/\
/\
||

Output when a class constant named SIZE is set to a value of 4:

||
\ /
\ /
\ /
\ /
||
/::\
/\
/\
/\
||

ansver
Answers: 2

Other questions on the subject: German

image
German, 27.06.2019 22:30, cgrodner1
The "universal man" of the renaissance who was skilled in painting, sculpture, architecture, botany, engineering, and other areas was
Answers: 2
image
German, 05.07.2019 08:00, Aracelys3946
How to put presence and circumstances in one sentence
Answers: 2
image
German, 06.07.2019 07:00, americab512
How many members are there in the house of representatives
Answers: 2
image
German, 10.07.2019 06:20, Karinaccccc
What is the significance of the nose end marking on a rocket or missile
Answers: 1
You know the right answer?
Write a program that produces an ASCII art representation of an hourglass using nested for loops. Us...

Questions in other subjects:

Konu
Mathematics, 05.10.2020 20:01