Write a program, using a for loop with step size 10, to print out all 2-digit numbers which end in 7, in increasing order
I have no idea where to start, or how to do this. help please!
Advertisement
Answer
range(stop)
range(start, stop[, step])
JavaScript
x
14
14
1
>>> for n in range(17, 100, 10):
2
print n
3
4
5
17
6
27
7
37
8
47
9
57
10
67
11
77
12
87
13
97
14