A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Baklava in Elena page! Here, you'll find the source code for this program as well as a description of how the program works.
import extensions;
import extensions'text;
import extensions'math;
public program()
{
int space := " "[0].toInt();
int star := "*"[0].toInt();
for (int n := -10; n <= 10; n++) {
int num_spaces := abs(n);
int num_stars := 21 - 2 * num_spaces;
console.writeLine(String.fill(num_spaces, space) + String.fill(num_stars, star));
}
}
Baklava in Elena was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.