simplysh / div

Simple CLI utility to get the greatest common denominator of a set of numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

div

Simple CLI utility to get the greatest common denominator of a set of numbers

Installation

Clone the repo and run

make

Usage

Call div along with your set of numbers:

div 800 600
# 200

To get all the common denominators, run with -a as the first argument:

div -a 800 600 1920 1080
# 1 2 4 5 8 10 20 40

License

MIT

About

Simple CLI utility to get the greatest common denominator of a set of numbers

License:MIT License


Languages

Language:C++ 87.5%Language:Makefile 12.5%