Weight Converter in C
Day 4 of learning C programming
This is a simple console-based weight conversion program written in C.
The program allows the user to convert between kilograms and pounds using a menu system
Features
- Convert kilograms to pounds
- Convert pounds to kilograms
- User-friendly menu
- Decimal precision up to 2 digits
How It Works
- The program displays a menu with two options.
- The user selects the conversion type.
- The user enters the weight value.
- The program calculates and displays the result.
Conversion Formula
Kilograms to Pounds: kg × 2.20462
Pounds to Kilograms: lb ÷ 2.20462
Example Output