Skip to content

Commit e31f654

Browse files
authored
Update README.md
1 parent 807e5eb commit e31f654

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

exercises/26-two-dimensional-array/README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,9 @@
22

33
## 📝 Instructions:
44

5-
1. Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i*j.
5+
1. Write a function `two_dimensional_array`, which takes 2 digits (x, y) as input and generates a 2-dimensional array.
66

7-
Note: i=0,1.., X-1; j=0,1,¡­Y-1.
8-
9-
10-
```text
11-
Q = Square root of (2 * c * d) / h
12-
```
13-
14-
*Following are the fixed values of `c` and `h`:*
15-
16-
+ `c` is 50.
17-
+ `h` is 30.
18-
+ `d` would be the parameter of the function.
7+
2. The element value in the i-th row and j-th column of the array should be i*j (the index values).
198

209
## 📎 Example input:
2110

@@ -29,8 +18,3 @@ two_dimensional_array(3,5)
2918
[[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8]]
3019
```
3120

32-
## 💡 Hints:
33-
34-
+ If the output received is in decimal form, it should be rounded off to its nearest value (for example, if the output received is 26.0, it should be printed as 26).
35-
36-
+ Import the `math` module.

0 commit comments

Comments
 (0)