Answers for "how to divide multiple digit numbers python"

2

python multiply digits of a number

def getProduct(n):
 
    product = 1
 
    # Converting integer to string
    num = str(n)
     
    # Traversing the string
    for i in num:
        product = product * int(i)
 
    return product
Posted by: Guest on April-17-2021
0

division of 2 numbers in python

def div():
  number1=int(input("Enter the first number: "))
  number2=int(input("Enter the second number: "))
  result=number1/number2;
  print(result)
Posted by: Guest on November-08-2021

Code answers related to "how to divide multiple digit numbers python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language