Java蓝桥杯--入门训练(4)A+B问题

mac2022-06-30  15

题目:

解决方案:

1 import java.util.*; 2 3 public class Main 4 { 5 public static void main(String args[]) 6 { 7 Scanner sc = new Scanner(System.in); 8 Integer a = sc.nextInt(); 9 Integer b = sc.nextInt(); 10 System.out.println(a + b); 11 } 12 }

 

转载于:https://www.cnblogs.com/Catherinezhilin/p/8482132.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)