实训作业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); } }