CBSE Class 11 Computer Science Question 46 of 48

Python Programming Fundamentals — Question 46

Back to all questions
46
Question

Question 33

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

Solution
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
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