Published: 10 Jan 2017 › Updated: 10 Jan 2017
Daily programming challenge #4 ASCII-ART
Difficulty: easy
Code a programm, which generates a Christmas tree as ASCII-Art.
EXAMPLE:
x
xxx
xxxxx
xxxxxxx
xxxxxxxxx
xxxxxxxxxxx
xxxxxxxxxxxxx
HH
NO ARRAYS ALLOWED!
Instead, use a while or for loop.
Extensions:
EXTENSION1:
Generate little Christmas tree balls. For this, use the Character "O". This should happen based on a set probability.
EXTENSION2:
Ask the user to input the probability of EXTENSION1.
EXTENSION3:
Make the tree move. For this, flush the Shell (on Linux Terminal) and regenerate another tree.
Leave Daily programming challenge #4 ASCII-ART to:
Read more #programming posts
Best Posts From linuxer4fun
We have not curated any of linuxer4fun's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From linuxer4fun
- Daily programming challenge #15 PAPER, PLEASE!
- Daily programming challenges: Why I do them
- Daily programming challenge #15 Basic challenge extended
- Daily programming challenge #14 Let's get easy for the moment
- Daily programming challenge #13 3D
- My thougts on 1 == 2; Math theory
- Daily programming challenge #12 Assembler
- Daily programming challenge #5 The lost challenge
- Daily programming challenge #11 Neural Networks
- Daily programming challenge #10 Data
- Daily programming challenge #9 HACKER
- Daily programming challenge #8 NETWORKS and stuff
- daily programming challenge #7 Your first own Library
- daily programming challenge #6 CHEAT-Engine
- Daily programming challenge #4 ASCII-ART
- Daily programming challenge #3
- daily programming challenge #2
- Daily programming challenge
- devRant - Programmers lifesaver