实训作业1

package 实训作业1;

import java.util.Scanner;

public class Exam1 {
    public static void main(String [] are) {
        System.out.print("请输入一个整数:");
        @SuppressWarnings("resource")
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = (int) ((a*10+5)/2+3.14159);
        System.out.println("加密结果为:"+b);
    }
}

 

posted @ 2019-05-22 10:33  虎牙搜索Darwin  阅读(101)  评论(0编辑  收藏  举报