Python program to print multiples of a given number
In this programming article, we are going to learn

program to find multiples of a given number in python
Python program to print multiples of a given number
The program to find the multiple sof a number in python is as follows:
# Owner : TutorialsInhand Author : Devjeet Roy
number = int(input("Enter number: "))
print("The multiples are: ")
for i in range(1,11):
print(number*i, end =" ")
The output of the program to print multiples of a given number in python is as follows:
PS C:\Users\DEVJEET\Desktop\tutorialsInHand> python code.py
Enter number: 5
The multiples are:
5 10 15 20 25 30 35 40 45 50
Please check our video tutorial on python program to print multiples of a given number:
Few important tips about the program
1. In the program we take a user input and convert it to integer data type.
2. We have found out the first ten multiples of the number.
3. We have to run a loop from 1 to 10 and have multiplied it with the number to get its multiples.
Program to print multiples of a given number in python snapshot:
Given the above approach, try to print the first n multiples of a given number in python. Try to do it as handson.
Would you like to see your article here on tutorialsinhand.
Join
Write4Us program by tutorialsinhand.com
About the Author
Devjeet Roy
Full Stack Web Developer & Blockchain Enthusiast
Page Views :
Published Date :
Apr 29,2023