This repository contains a simple unit conversion program written in C. The program allows users to convert various units of measurement, such as length, weight, and temperature, from one unit to another.
To use the program, simply download or clone the repository to your local machine. Once you have the files on your computer, compile the unit_conversion.c
file using a C compiler such as gcc. You can do this by typing the following command:
gcc -o unit_conversion unit_conversion.c
This will create an executable file named unit_conversion
. To run the program, simply type the following command:
./unit_conversion
The program will start running and will prompt you to enter the value you want to convert, the unit you are converting from, and the unit you are converting to. Simply follow the on-screen instructions to complete the conversion.
The program have following conversions:
- kilometer into meter
- milimeter to meter
- meter in foot
- foot to centimeter
- kilometer to centimeter
- milimeter to kilometer
- foot to meter
- foot to inches
- hours to seconds
- minutes to seconds
- seconds to minutes
- seconds to hours
- kilogram to gram
- gram to kilogram
- kilogram to pound
- pound to kilogram
- tonne to kg
- celcius to kelvin
- celcius to fahrenheit
- fahrenhiet to celcius
- meter^3 to feet^3
- cm^3 to meter^3
- meter^3 to liter
If you would like to contribute to the project, please feel free to fork the repository and submit a pull request. You can also open an issue if you have any suggestions or find any bugs.
This project is licensed under the MIT License - see the LICENSE file for details.