This repository contains a C program that converts a given number into binary, hexadecimal, and octal representations.
To compile and run the program, you need to have a C compiler installed on your system. The program is compatible with any C compiler that supports the C99 standard.
-
Clone the repository to your local machine.
-
Navigate to the repository directory.
-
Compile the program using the following command:
gcc -o bcon main.c
Replace program_name with your desired name for the executable.
- Run the program with the following command:
./bcon <number> [options]
Replace <number> with the number you want to convert.
Available options:
-v: Enable verbose mode.
$ ./bcon 42 -v
BINARY HEXADECIMAL OCTAL
101010 0x2A 52
If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to customize the content as per your requirements.