Find the total sum of internal angles (in degrees) in an n-sided simple polygon. N will be greater than 2.
Solution:
SELECT
180 * (n - 2) AS res
FROM
angle
The sum of the interior angles of an n-gon is 180˚× (n-2).
Result:
| res |
| 9720 |
| 12960 |
| 10080 |
| 15660 |
| 12780 |
| 5400 |
| 16920 |
'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글
| Adults only (SQL for Beginners #1) (0) | 2022.06.25 |
|---|---|
| SQL: Padding Encryption (0) | 2022.06.23 |
| SQL Basics: Up and Down (0) | 2022.06.21 |
| GROCERY STORE: Inventory (0) | 2022.06.20 |
| Best-Selling Books (SQL for Beginners #5) (0) | 2022.06.19 |