mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-13 23:22:49 +02:00
print-pyramid
Created by @theoludwig on 21 September 2021.
Instructions
Display a pyramid of stars (*
) whose height is given and in the right order (normal
or reverse
).
Input
- Line 1: The string :
normal
orreverse
to determine how to show the pyramid. - Line 2: The integer : height of the pyramid.
Examples
See the test
folder for examples of input/output.