Please answer fast..No-6
Attachments:
Answers
Answered by
4
import java.util.Scanner;
public class Temperature
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
double c,f;
System.out.println(" Enter temperature in celsius :");
c=in.nextDouble();
f = ( ((9/5)*c) + 32));
System.out.println(" The fahrenheit temperature is :"+f);
}
}
public class Temperature
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
double c,f;
System.out.println(" Enter temperature in celsius :");
c=in.nextDouble();
f = ( ((9/5)*c) + 32));
System.out.println(" The fahrenheit temperature is :"+f);
}
}
Similar questions