10.0 km = 6.21 miles
10.0 kg = 22.05 pounds
10.0 litres = 2.64 gallons (US)
Data-driven code: adding a conversion means adding one table row. The trailing comma after the last row is allowed in C initializers and makes such tables easy to extend.
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!
We use Google Analytics cookies to see how LearnFrenzy is used and make it better, and Google AdSense to keep it free.
No analytics or ad cookies are set until you accept. Privacy Policy
·
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!