java吧 关注:1,247,842贴子:12,729,058
  • 1回复贴,共1

在美国学习java, 求解答一下这个问题

只看楼主收藏回复

Write a program that asks the user to enter a number of pounds, reads that value that the user typed, and then converts it to ounces and prints out the result. There are 16 ounces in a pound. In the following sample screen output, "4" is in bold to indicate that it is input by the user, not printed by the computer:
enter pounds: 4
4 pounds is 64 ounces


1楼2017-06-15 12:04回复
    非常简单 就是一个简单的转换函数就能实现
    不懂可以加我扣 89五68六84三


    2楼2017-06-15 12:26
    回复