ackage com.company;
import java.util.Scanner;
public class dem30 {
public static void main(String[] args) {
System.out.println("请输入一个值:");
Scanner scanner =new Scanner(System.in);
int val = scanner.nextInt();
System.out.println("根据这个值得到加法表:");
for (int i =0,j = val;i<=val;i++,j--){
System.out.println(i+"+"+j+"="+(i+j));
}
}
}