java吧 关注:1,251,345贴子:12,735,683
  • 0回复贴,共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回复