# A+B #6

**문제**

두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.

### 입력

첫째 줄에 테스트 케이스의 개수 T가 주어진다.

각 테스트 케이스는 한 줄로 이루어져 있으며, 각 줄에 A와 B가 주어진다. A와 B는 콤마(,)로 구분되어 있다. (0 < A, B < 10)

### 출력

각 테스트 케이스마다 A+B를 출력한다.

> **Input**\
> 5\
> 1, 1\
> 2, 3\
> 3, 4\
> 9, 8\
> 5, 2

> **Output**\
> 2\
> 5\
> 7\
> 17\
> 7

**문제 풀이 방법**

입력하는 숫자 두 개를 String(String\[ ] arr)으로 받는다.\
숫자 두 개는 "," 로 구분되기 때문에 Scanner.next().split(",") 를 사용한다.\
입력받은 숫자 두개를 덧셈하고 출력해야하기 때문에 정수로 변한하기 위해 Integer.parseInt(string)을 사용한다.

```java
Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]));
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://heunnajo.gitbook.io/algorithms-problem-solving-skills/basic-addition/a+b-6.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
