let input = Double(readLine()!)!
let round1:Double = 1000000
let a = round(input * input * Double.pi * round1) / round1
let b = input * 2 * input
print(a)
print(b)
'코테 > 백준' 카테고리의 다른 글
[백준] 10872 팩토리얼 스위프트 (0) | 2022.01.10 |
---|---|
[백준] 1002 터렛 스위프트 (0) | 2022.01.08 |
[백준] 4153 직각삼각형 스위프트 (0) | 2022.01.07 |
[백준] 1085 직사각형에서 탈출 스위프트 (0) | 2022.01.07 |
[백준] 3009 네번째점 스위프트 (0) | 2022.01.07 |
댓글