解题思路:





注意事项:





参考代码:

import java.util.Scanner;


public class C1005 {

public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

while (scanner.hasNext()) {

int f = scanner.nextInt();

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

System.out.println("c=" + String.format("%.2f", c));

}

scanner.close();

}

}


 

0.0分

0 人评分

  评论区

  • «
  • »