What is wrong in code


What is wrong here?

public class Temperature 
{
public static void main(String[] args) 
{
double tempf = 98.6;
double tempc = 0.0;
ftoc(tempf, tempc);
System.out.println("Body temp in C is: " + ftoc);
}

// converts Fahrenheit temperatures to Celsius
public static double ftoc(double tempf, double tempc)
{
tempc = (tempf - 32) * 5 / 9;
return tempc;
System.out.println("");

}

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: What is wrong in code
Reference No:- TGS0100014

Expected delivery within 24 Hours