/pyramid-exercise

The typical print a Pyramid example, but in Rust using std::fmt

Primary LanguageRustMIT LicenseMIT

The typical Pyramid program example

I relized you could easily do the pyramid example using formatting specifiers like Rust's fmt module or Python's f-strings.

This is my simple proof of concept in Rust.

Example

Here are two recordings of the program:

On [asciinema.org] (you can select text directly):

asciicast

As a GIF:

An asciinema recording of the program being run, and it's source code being shown

Extra

The repo contains the cast files as well if you'd like to regenerate the recording yourself.