首页 > 编程语言 > 详细

中国大学MOOC-JAVA学习(浙大翁恺)—— 温度转换

时间:2019-03-24 19:03:49      阅读:125      评论:0      收藏:0      [点我收藏+]
 1 import java.util.Scanner;
 2 
 3 public class Main {
 4 
 5     public static void main(String[] args) {
 6         // TODO Auto-generated method stub
 7         int f;
 8         int c;
 9         Scanner in = new Scanner(System.in);
10         f = in.nextInt();
11         c = (f-32) * 5/9;
12         System.out.println((int)c);
13     }
14 
15 }

 

中国大学MOOC-JAVA学习(浙大翁恺)—— 温度转换

原文:https://www.cnblogs.com/pxy-1999/p/10589315.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!