参考代码:
import java.util.Scanner; public class Main9 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //2216 Scanner scanner=new Scanner(System.in); int a=scanner.nextInt(); int b=scanner.nextInt(); GetTwoInts(a, b); } public static int GetTwoInts(int x,int y) { int num=x+y; System.out.println(num); return num; } }
0.0分
2 人评分
【亲和数】 (C语言代码)浏览:533 |
A+B for Input-Output Practice (IV) (C++代码)浏览:676 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:748 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:448 |
【蟠桃记】 (C语言代码)浏览:664 |
C语言程序设计教程(第三版)课后习题9.2 (C语言代码)浏览:555 |
最小公倍数 (C语言代码)浏览:1025 |
IP判断 (C语言代码)浏览:532 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:672 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:467 |