Write a method named celsius that accepts a single argument


The formula for converting a temperature from Fahrenheit to Celsius is

C = 5/9 * (F - 32)

Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a method named Celsius that accepts a single argument, the temperature in Fahrenheit. The method should return the temperature converted to Celsius. Demonstrate the method by calling it in a loop that displays a table of Fahrenheit temperatures 0 through 20 and their Celsius equivalents

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a method named celsius that accepts a single argument
Reference No:- TGS01408365

Now Priced at $35 (50% Discount)

Recommended (93%)

Rated (4.5/5)