How to write program that converts kilograms and grams to pounds and ounces?
Basic math. The example above converts from pounds and ounces to kilograms and grams. Just replace the calc_grams and calc_kilograms functions with calc_pounds and calc_ounces, and change the text in output and get_input.
No comments:
Post a Comment