Example 4: Weight Conversions
Explore how to create a C program that converts weight from kilograms into grams, quintals, metric tonnes, and pounds. Understand how to use control flow for input handling, calculations, and formatted output with precision.
We'll cover the following...
We'll cover the following...
Problem
Write a program that takes the weight of a commodity in kg, and convert it into the following units:
- Grams
- Quintals
- Metric Tonnes
- Pounds
Print the result of all ...