①
write
python program using while
loop to print first n numbers divisible
by. 5
Answers
Answered by
1
n = 10
c = 1
nums = []
while len(nums) < n:
if c % 5 == 0:
nums.append(c)
c += 1
for x in nums:
print(x)
Similar questions
Chemistry,
3 months ago
Hindi,
3 months ago
Business Studies,
3 months ago
Geography,
6 months ago
Computer Science,
11 months ago
Math,
11 months ago