问题描述:
JAVA method 调用类
Theformula for converting a temperature from Fahrenheit to Celsius is
C= 5/9 * (F – 32)
WhereF is the Fahrenheit temperature and C is the Celsius temperature.Write a methodnamed Celsius that accepts a single argument,the temperature in Fahrenheit.The method should return the temperature converted to Celsius.Demonstrate themethod by calling it in a loop that displays a table of Fahrenheit temperatures0 through 20 and their Celsius equivalents.
..着急,
Theformula for converting a temperature from Fahrenheit to Celsius is
C= 5/9 * (F – 32)
WhereF is the Fahrenheit temperature and C is the Celsius temperature.Write a methodnamed Celsius that accepts a single argument,the temperature in Fahrenheit.The method should return the temperature converted to Celsius.Demonstrate themethod by calling it in a loop that displays a table of Fahrenheit temperatures0 through 20 and their Celsius equivalents.
..着急,
问题解答:
我来补答展开全文阅读