Advertisement
gyliash

first_homework

Dec 10th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. a = -50
  2. while a <= 378:
  3.     if a % 3 == 0 and a % 7 == 0:
  4.         print('foobar')
  5.     elif a % 3 == 0:
  6.         print('foo')
  7.     elif a % 7 == 0:
  8.         print('bar')
  9.     else:
  10.         print(a)
  11.     a += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement