Computer Science, asked by siripurapusandhya15, 6 months ago


write
python program using while
loop to print first n numbers divisible
by. 5

Answers

Answered by valeriy69
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)

\small\mathsf\color{lightgreen}useful?\: \color{white}\mapsto\: \color{orange}brainliest

Similar questions