Python Division

Description

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

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 it using / operator. It gives quotient of division operation.



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