Lab cycle3
Exercise 3:
Write a program that uses
a for loop to print the numbers 8, 11, 14, 17, 20, . . . , 83, 86 , 89
Source code:
for i in range(8,90,3):
print(i, sep=",")
RESULT:
8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89
Comments
Post a Comment