Advertisement
roronoa

foobar

Jul 17th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. N=readline()
  2. for(i=1;i<=N;i++){s=""
  3. if(i%5==0)s+="Foo"
  4. if(i%7==0)s+="Bar"
  5. print(s||i)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement