Print First 5 multiples
Complete the given method solve that takes as parameters an integer and prints the first five multiples of the integer.
Print the multiples on a single line, separated by a space character. At the end of the line, print a new line.
Example Input: 5
Output: 5 10 15 20 25
Example Input: 7
Output: 7 14 21 28 in python
Answers
Answered by
0
print("This program that outputs the first five multiples of a number")
user_input = int(input("Please enter a number"))
print(user_input * 1, ',', user_input * 2, ',', user_input * 3, ',', user_input * 4, ',', user_input * 5,"\n")
This should do it. Please mark me as the brainliest.
Answered by
2
Explanation:
def solve(n):
print (n*1,n*2,n*3,n*4,n*5)
#kanakaraju_k_pro
Similar questions