Skip to content

Commit 47bdb45

Browse files
committed
floor division added
1 parent 27c37d4 commit 47bdb45

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

Easy-ones/Floor-Division.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
## 1.4: Floor division
3+
4+
**S-1: The problem**
5+
Find the floor division of two numbers.
6+
7+
<details>
8+
<summary><b>S-2: Click Here For Show Hints</b></summary>
9+
<p>Floor division means the integer part of a division operation. For example, if you divide 17/5 the quotient will be 3.4. </p>
10+
</details>
11+
<br>
12+
13+
**Here the integer part is 3.**
14+
15+
> So, you have to find the integer part of the division operation.
16+
17+
#### S-3: Solution
18+
19+
```python
20+
num1 = int(input('Enter the first number: '))
21+
num2 = int(input('Enter the second number: '))
22+
23+
result = num1//num2
24+
print(result)
25+
```
26+
27+
**[Try It:](/#)**
28+
29+
> to be continued...
30+
31+
###### tags: `programmig-hero` `python` `float` `int` `math`
32+

Easy-ones/Random-Number.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ How will you generate a random integer number?
3939
Use math.randomint to get a random integer.
4040

4141
&nbsp;
42-
[![Next Page](../assets/next-button.png)](#)
42+
[![Next Page](../assets/next-button.png)](Floor-Division.md)
4343
&nbsp;
4444

4545
###### tags: `programmig-hero` `python` `float` `int` `math`

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ Which one is used to convert string to a number?
5656
*S-7: Take Away*
5757

5858
Use int or float to convert user input to a number. <br>
59+
5960
&nbsp;
60-
[![Next Page](assets/next-button.png)](/Easy-ones/Math-Power.md)
61+
[![Next Page](assets/next-button.png)](Math-Power.md)
6162
&nbsp;
62-
###### tags: `programmig-hero` `python` `float` `int`
63+
64+
###### tags: `programmig-hero` `python` `float` `int` `math`

0 commit comments

Comments
 (0)