-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplus_3.java
More file actions
20 lines (17 loc) · 498 Bytes
/
plus_3.java
File metadata and controls
20 lines (17 loc) · 498 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package IO;
import java.util.Scanner;
public class plus_3 {
public static void main(String[] args) {
//#10950_A+B_3
Scanner scanner = new Scanner(System.in);
int x, a, b;
System.out.print("실행할 연산 횟수를 입력하세요 :");
x = scanner.nextInt();
for(int i=0; i<x; i++) {
System.out.print("더하기를 수행할 두 숫자를 입력하세요 :");
a = scanner.nextInt();
b = scanner.nextInt();
System.out.println(a + b);
}
}
}