Unit Converter in C

Unit Converter in C
Sample output

As a personal project to deepen my understanding of procedural programming in C, I developed a command-line unit converter that handles five categories of physical units: temperature, distance, pressure, weight, and volume.

This application showcases the use of control structures, modular functions, and input validation, allowing the user to perform multiple conversions in a single session while ensuring robust handling of invalid inputs.

The program features an interactive menu system, where each category presents specific conversion options (e.g., Celsius ↔ Fahrenheit, kilometers ↔ miles, etc.). After receiving the user input, the program displays the converted result and offers the option to continue or exit.

This project not only helped me consolidate fundamental C programming concepts but also introduced me to structuring scalable CLI applications.

Key Features:

  • Interactive menu for five categories of units
  • Temperature: °C ↔ °F
  • Distance: km ↔ miles, m ↔ ft
  • Pressure: Pa ↔ atm
  • Weight: kg ↔ lb
  • Volume: L ↔ gal
  • Input validation to prevent crashes or invalid operations
  • Loop system to allow multiple conversions in one session
GitHub Page
Contact me!
LinkedInBehance