A small C project for base conversions, created by ml0w6c65766c.
The converter supports conversions between Binary, Decimal, and Hex.
| Option | Conversion |
|---|---|
| 1 | Binary → Hex |
| 2 | Binary → Decimal |
| 3 | Decimal → Binary |
| 4 | Decimal → Hex |
| 5 | Hex → Binary |
| 6 | Hex → Decimal |
This project uses a Makefile for easy compiling and running.
- Linux / macOS terminal
gcccompilermakeutility
Install make if you don’t have it:
sudo apt install makeTo compile and run the converter:
make run- Run the program with
make run. - Choose a conversion option from the menu (1–6).
- Enter the number (Binary, Decimal, or Hex) when prompted.
- The converted output will be displayed immediately.
