marcusholmgren / RomanNumerals

Roman number converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roman numbers converter

This is a simple program that converts Roman numbers to Arabic numbers and vice versa.

The first version of this program was written in CoffeeScript, but I decided to rewrite it in Rust to learn the language.

Technologies

How to run

  1. Install Rust by following the instructions on the official website.
  2. Navigate into the project folder rust and run the following command:

Convert Roman to Arabic:

```sh
cargo run -- roman IV

Expected output is 4.

Convert Arabic to Roman:

cargo run -- arabic 2024

Expected output is MMXXIV.

About

Roman number converter


Languages

Language:JavaScript 87.0%Language:Rust 5.3%Language:CoffeeScript 3.3%Language:CSS 2.4%Language:HTML 1.4%Language:Makefile 0.5%