Computer Science, asked by gauri12310, 1 year ago

create an application in java to convert celcius in Fahrenheit ​


myra9148: say
myra9148: bolo
myra9148: say
myra9148: bolo
myra9148: hi
myra9148: hello
myra9148: ok i go
rishirajsharma197: hi
rishirajsharma197: this is ur fake id
Anonymous: hhaaa

Answers

Answered by rishirajsharma197
2

public class Fahrenheit_Celsius.

{

double celsius, fahrenheit;

Scanner s = new Scanner(System.

System. out. print("Enter temperature in Fahrenheit:");

fahrenheit = s. nextDouble();

celsius = (fahrenheit-32)*(0.5556);

System. out. println("Temperature in Celsius:"+celsius);


gauri12310: 8th
rishirajsharma197: Nice do
rishirajsharma197: DP
gauri12310: thank u
rishirajsharma197: U wore vampire costume
gauri12310: no
rishirajsharma197: Kk
rishirajsharma197: Hey
rishirajsharma197: Gauri
gauri12310: wat
Answered by mithulpranav24826
0

Answer:

import java.io.*;

public class celsiustofahren

{

   public static void main(String[] args) throws IOException

   {

       InputStreamReader isr = new InputStreamReader(System.in);

       BufferedReader br = new BufferedReader(isr);

       System.out.println("Enter celsius");

       int c=Integer.parseInt(br.readLine());

       double f=c*(9/5)+32;

       System.out.println("Fahrenheit is = "+f);

   }

}

Answered by M.Mithul Pranav

Hope it helps

Similar questions