Java 温度转换

import java.util.Scanner;
public class Main {
  public static int swap(int a)
 {
   double k;
   k = (a-32)*5/9.0;
  return (int)(k);
 }
 public static void  main(String[] args)
 {
  Scanner in = new Scanner(System.in);
  int a ;
  a = in.nextInt() ;
  System.out.println(swap(a));
 }
}

相关文章:

  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-11-24
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2021-12-13
  • 2022-12-23
  • 2021-11-06
  • 2021-09-19
  • 2021-04-17
相关资源
相似解决方案