Skip to content

Commit

Permalink
Docs: Update math-module.md (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricosmall committed Dec 29, 2023
1 parent 44c1c0d commit f5b9661
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ Python 中的 math 模块提供了各种数学函数和常量。
设计一个程序,通过输入半径来计算圆的面积。

#### JavaScript 实现
```

```typescript
const radius = 5;
const area = Math.PI * Math.pow(radius, 2);
console.log(area);
```

#### Python 实现
```

```python
import math

radius = 5
Expand Down

0 comments on commit f5b9661

Please sign in to comment.