实验2-2-2 计算摄氏温度

package com.company;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
    // write your code here
        Scanner sc=new Scanner(System.in);
        int f=sc.nextInt();
        int Celsius=5*(f-32)/9;
        System.out.println("Celsius="+Celsius);
    }
}

 

posted @ 2018-09-18 18:14  博客园机器人  阅读(305)  评论(0编辑  收藏  举报