Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. # This program follows the pattern 112112112
  2. n = int(input("enter "))
  3.  
  4.  
  5. def check(n):
  6. c=
  7. if n%3==0:
  8. print("2")
  9. else
  10. print("1")
  11.  
  12.  
  13. check(n)
  14.  
  15. # 2+1+1+2=6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement