Question: writea prgram in java lang to convert fahreinheit to celsius? PLS!!!!!!!!!!!!!!!!!!!! help me

Answer: import java.util.Scanner;\nimport java.text.DecimalFormat;\n\n// Asks the user for a temperature in fahreinheit \n// and converts it to celsius.  Fractional numbers\n// are nicely formatted.\n// Author: Michael Hay\npublic class TempConverterFToC {\n  public static void main(String[] args) {\n    DecimalFormat fmtTemp = new DecimalFormat(".#");\n    Scanner scan = new Scanner(System.in);\n    double fahrenheit = scan.nextDouble();\n    \n    double celsius = (5.0 / 9) * (fahrenheit - 32);\n        \n    System.out.print(fmtTemp.format(fahrenheit));\n    System.out.print(" degrees fahrenheit is ");\n    fmtTemp.applyPattern(".##");\n    System.out.print(fmtTemp.format(celsius));\n    System.out.println(" degrees celsius.");\n  }\n}
This question from the Yahoo Q&A forum is categorized in the topic: Society & Culture