# 백준 알고리즘 2588번 곱셈

![](https://2813200094-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LjknMsNxKq9uQBm8Zgo%2F-Ljks0Xgg9lgF3f4oZZw%2F-LjksDQlUGv-EhdXlHvf%2Fboj-2588.png?alt=media\&token=958893ee-0a80-468e-9017-2f835993c53e)

## 풀이

```python
a = int(input())
b = int(input())

temp = b
for x in range(3): # for문은 들여쓰기 주의!
    print( (temp % 10) * a ) # temp를 10으로 나눈 나머지 값은 무엇을 의미하는가? 일의 자리를 의미함
    temp = temp // 10  # temp값을 10으로 나눈 몫을 temp에 넣는다 -> 새 temp 값으로 (temp % 10)*a) 계산하여 출력
                       # 작업을 3회까지 반복, range(3)이니까

print(a * b) # 최종답안 a x b 를 출력한다
```

## **References** <a href="#references" id="references"></a>

* \[Python] 6차 for문 기초 ( for x in range() )

<https://blog.naver.com/ex122388/221010743333>

* 파이썬(Python) 기초 - 리스트(List) 이해하고 정복하기

<https://sarc.io/index.php/development/855>

* for문과 함께 자주 사용하는 range 함수

<https://wikidocs.net/22#for-range> &#x20;


---

# 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://jihwan.gitbook.io/life101/undefined/2588-python3.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.
