Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #VI LAB1/2 made by Fensa08
- def sovrshen_broj():
- global broj
- li = range(1,broj)
- zbir = 0
- #[ zbir += elem for elem in li if broj % elem == 0]
- for elem in li:
- if broj % elem == 0:
- zbir += elem
- if zbir == broj:
- print("SOVRSHEN")
- else:
- print("NESOVRSHEN")
- if __name__ == "__main__":
- broj = eval(input())
- sovrshen_broj()
Add Comment
Please, Sign In to add comment