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