write the cd to print multiples of 7 in descending order in python
Answers
Answered by
0
Answer:
Numbers Divisible by 7. To determine if a number is divisible by 7, take the last digit off the number, double it and subtract the doubled number from the remaining number. If the result is evenly divisible by 7 (e.g. 14, 7, 0, -7, etc.), then the number is divisible by seven.
Explanation:
hope it helps
Answered by
0
Your Program:
n = int(input("Enter the number of multiples you want of 7: "))
print("The multiples of 7 are: ")
for x in range(10, 0, -1):
print(x*7)
Output of the program:
Enter the number of multiples you want of 7: 10
The multiples of 7 are:
70
63
56
49
42
35
28
21
14
7
Similar questions