multiples of 5

Question

Print all multiples of 5 from 5 to 30 using the while loop.

in progress 0
YashikaKhurana 4 years 1 Answer 1007 views Master 0

Answer ( 1 )

  1. i=5

    while i%5==0 and i<=30:
    print(i)
    i=i+5

Leave an answer

Browse
Browse