# Python program to take two integers from the user and determine and print whether the first is a multiple of the second.

Here is the code for the python program to take two integers from the user and determine and print whether the first is a multiple of the second.

```# Python program to take two integers from the user and determines and prints whether the first is a multiple of the second.

firstNumber = int(input("Enter first number: "))
secondNumber = int(input("Enter second number: "))
if firstNumber % secondNumber == 0:
print(firstNumber, "is multiple of", secondNumber)
else:
print(firstNumber, "is not multiple of", secondNumber)

# This code is contributed by Ahmad Shafiq
``` ## Love this read? Subscribe to Modernage!

Do you have any queries? You can ask in the comments. We, at Modernage answer each and every question, asked in the comments, so If you have any queries, or you want to know about any specific platform you can ask in the comments below

## Author

### This Post Has One Comment

1. mary

Design a function called compare_median_average that takes as arguments three floating point numbers. The function should calculate the average and median of these numbers and print the following:

If the median is more than 0.01 bigger than the average, it should print:

the median is X higher than the average
where X is the amount higher the median is than the average to two decimal places.

If the median is more than 0.01 smaller than the average, it should print:

the median is X smaller than the average
where X is the amount smaller the median is than the average to two decimal places.

Otherwise it should print:

the median and average are approximately the same ## More Articles.  ### Python program that reads three nonzero integer values and determines and prints whether they could represent the sides of a triangle.

Here is code for a python program that reads three nonzero integer values and determines and prints whether they could represent the sides of a  ### Find the square root of 50 using Guess and Check and Bisection algorithms.

Here is the code of finding the square root of 50 using Guess and Check and Bisection algorithms. .  ### Ask the user to print two numbers ‘x’ and ‘y’ then print out the number ‘x’ raised to power ‘y’.

Here is the code:

## Python

### Python program to calculate the area and circumference of the circle. ## More Articles.  ### What is Selfie Art World? Best place to visit in Pakistan

Art represents the cultural heritage of a society. It  ### What is Blockchain: A beginners guide to blockchain

With the technology evolving more than ever, we have  