Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. h=3
  2. d=5
  3. c=0
  4.  
  5. while c < 9:
  6.     if (h%3 == 0) and ( h < 10):
  7.         print(str(h))
  8.         h = h +3
  9.     if (d%5 == 0) and (d < 10):
  10.         print(str(d))
  11.         d = d + 5
  12.     l = h + d
  13.     c = c + 1
  14. print('\n %f' %(l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement