Computer Science

Write a program to input a number and print its first five multiples.

Python

Python Funda

249 Likes

Answer

n = int(input("Enter number: "))
print("First five multiples of", n, "are")
print(n, n * 2, n * 3, n * 4, n * 5)

Output

Enter number: 5
First five multiples of 5 are
5 10 15 20 25

Answered By

170 Likes


Related Questions