📅  最后修改于: 2022-03-11 15:04:34.649000             🧑  作者: Mango
cels = (fahr-32.0) * 5.0/9.0 //fahr to cels
fahr = (cels * 9.0/5.0) + 32.0 //cels to fahr
import java .util .scanner ;
public class main {
public static void main (string args [J) {
scanner sc=new scanner (system,in);
int far = sc.nextInt ();
int cel = (far - 32) * 5/9
system .out printf ("%d fahreneheit is %d celsius , far , cel);
}
}