This is a simple CLI Delphi program that draws different types of diamond shapes based on user input (as positive int).
- Filled diamond using
*
characters. - Number-based symmetrical diamond.
- Alphabet-based symmetrical diamond.
- Unfilled (hollow) diamond using
*
characters.
- Delphi compiler.
- Open the project in your Delphi IDE or compile it via CLI.
- Then just run.
- When prompted, enter a positive integer to define the size of the diamond.
Please enter the size of the diamond shape (Enter -1 to stop): 3
Filled Diamond with *:
*
***
*****
***
*
Diamond with Numbers:
1
121
12321
121
1
Diamond with Letters:
A
ABA
ABCBA
ABA
A
Unfilled Diamond with *:
*
* *
* *
* *
*