Skip to content

The "Unit Conversion" repository on GitHub which simplifies converting between different units of measurement. Its c scripts convert units like length, mass, temperature, and time accurately, regardless of system. Examples include km to miles and Celsius to Fahrenheit.

Notifications You must be signed in to change notification settings

HartzFrequency/Unit-conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Unit Conversion

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.

Getting Started

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.

Supported Conversions

The program have following conversions:

Length

  • kilometer into meter
  • milimeter to meter
  • meter in foot
  • foot to centimeter
  • kilometer to centimeter
  • milimeter to kilometer
  • foot to meter
  • foot to inches

Time

  • hours to seconds
  • minutes to seconds
  • seconds to minutes
  • seconds to hours

Weight

  • kilogram to gram
  • gram to kilogram
  • kilogram to pound
  • pound to kilogram
  • tonne to kg

Temperature

  • celcius to kelvin
  • celcius to fahrenheit
  • fahrenhiet to celcius

Volumne

  • meter^3 to feet^3
  • cm^3 to meter^3
  • meter^3 to liter

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

The "Unit Conversion" repository on GitHub which simplifies converting between different units of measurement. Its c scripts convert units like length, mass, temperature, and time accurately, regardless of system. Examples include km to miles and Celsius to Fahrenheit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages