File tree 3 files changed +37
-3
lines changed
3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ How will you generate a random integer number?
39
39
Use math.randomint to get a random integer.
40
40
41
41
  ;
42
- [ ![ Next Page] ( ../assets/next-button.png )] ( # )
42
+ [ ![ Next Page] ( ../assets/next-button.png )] ( Floor-Division.md )
43
43
  ;
44
44
45
45
###### tags: ` programmig-hero ` ` python ` ` float ` ` int ` ` math `
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ Which one is used to convert string to a number?
56
56
* S-7: Take Away*
57
57
58
58
Use int or float to convert user input to a number. <br >
59
+
59
60
  ;
60
- [ ![ Next Page] ( assets/next-button.png )] ( /Easy-ones/ Math-Power.md)
61
+ [ ![ Next Page] ( assets/next-button.png )] ( Math-Power.md )
61
62
  ;
62
- ###### tags: ` programmig-hero ` ` python ` ` float ` ` int `
63
+
64
+ ###### tags: ` programmig-hero ` ` python ` ` float ` ` int ` ` math `
You can’t perform that action at this time.
0 commit comments