Skip to content

Commit ab0c6ba

Browse files
authored
Docs: Update math-module.md (#34)
1 parent f5b9661 commit ab0c6ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/math-module.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ The math module in Python provides various mathematical functions and constants.
1212
Design a program to calculate the area of a circle based on the input radius.
1313

1414
#### JavaScript implementation
15-
```
15+
16+
```typescript
1617
const radius = 5;
1718
const area = Math.PI * Math.pow(radius, 2);
1819
console.log(area);
1920
```
2021

2122
#### Python implementation
22-
```
23+
24+
```python
2325
import math
2426

2527
radius = 5

0 commit comments

Comments
 (0)