中国大学MOOC-JAVA学习(浙大翁恺)—— 温度转换
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 }
学习的博客多用于在笔记中,防止笔记过于臃肿,所以将样例及运行结果放在博客中,后以超链接的形式记录在笔记中,所以有些博文过于单薄。如果有小伙伴遇到问题欢迎评论,看到就会回复,学渣一枚,加油努力。