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