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
Write a program to compute simple interest and compound interest.
Write a program to read details like name, class, age of a student and then print the details firstly in same line and then in separate lines. Make sure to have two blank lines in these two different types of prints.
Write a program to find area of a triangle.
Write a program to input a single digit(n) and print a 3 digit number created as
e.g., if you input 7, then it should print 789. Assume that the input digit is in range 1-7.