jalil-salame / pyramid-exercise

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Rust 100.0%