Python Integer Division

Description

Python program to get two integer numbers, divide both the integers and dispaly the Integer quotient.
Sample Input 1:
10
3
Sample Output 1:
3
Input2:
29
2
Output2:
14

Solution

num1=int(input("Enter First number:"))
num2=int(input("Enter second number:"))
quotient=num1//num2
print(quotient)

Explanation

Read two inputs using input() method.
Conver it into integer by int() method.
Divide using // operator, which gives integer quotient.



Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution