Fixed README

This commit is contained in:
Lian Drake 2024-06-15 21:25:22 -04:00
parent 53fe2521e3
commit eaa93b9c62

View file

@ -64,61 +64,61 @@ appropriate options.
1. Convert a decimal number to binary, hexadecimal, and octal: 1. Convert a decimal number to binary, hexadecimal, and octal:
```bash ```bash
./snconverter -d 255 ./snconverter -d 255
``` ```
Output: Output:
``` ```
Binary: 11111111 Binary: 11111111
Hexadecimal: FF Hexadecimal: FF
Octal: 377 Octal: 377
``` ```
2. Convert a binary number to decimal, hexadecimal, and octal: 2. Convert a binary number to decimal, hexadecimal, and octal:
```bash ```bash
./snconverter -b 11010101 ./snconverter -b 11010101
``` ```
Output: Output:
``` ```
Decimal: 213 Decimal: 213
Hexadecimal: D5 Hexadecimal: D5
Octal: 325 Octal: 325
``` ```
3. Convert a hexadecimal number to decimal, binary, and octal: 3. Convert a hexadecimal number to decimal, binary, and octal:
```bash ```bash
./snconverter -x 1A3F ./snconverter -x 1A3F
``` ```
Output: Output:
``` ```
Decimal: 6719 Decimal: 6719
Binary: 1101000111111 Binary: 1101000111111
Octal: 15177 Octal: 15177
``` ```
4. Display help message: 4. Display help message:
```bash ```bash
./snconverter -h ./snconverter -h
``` ```
This will display detailed usage instructions and available options. This will display detailed usage instructions and available options.
5. Display version: 5. Display version:
```bash ```bash
./snconverter -v ./snconverter -v
``` ```
This will show the current version of the program. This will show the current version of the program.
## Notes ## Notes