package 输入整数输出正负5内的整数;
import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自动生成的方法存根
System.out.print("请输入一个整数!");
Scanner sc = new Scanner(System.in);
int Num= sc.nextInt();
Random random = new Random();
//开始数字
int Start=Num-5;
//结束数字
int End=Num+5;
int number = random.nextInt(End - Start + 1) + Start;
System.out.print(number);
}
}