想测试下你的英文吗?看你能否解决这些编程 想挑战的进来
a) The conversion ratios are predefined and stored in variables of the type double. For example:
double FtoM = 0.3048; // Ratio for converting feet into meter
double MtoKM = 1.852; // Ratio for converting mile into kilometer
b) User inputs a conversion request which consists of a code representing the
type of conversion and an amount to be converted.
For example: 1 2000 represents a request to convert 2,000 feet into its
equivalence in meters.
c) Your program will perform the conversion based on the predefined ratios and
prints the converted amount (to 2 decimal places) on the screen.
提示:
最终输入 : 1 2000 会显示609.60
挑战成功继续追加问题
[ 本帖最后由 wu47589791 于 2009-10-12 00:24 编辑 ]