Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tinhTongBoiSo(n):
- sum = 0;
- for i in range(0,n):
- if (i % 5 == 0 or i % 3 == 0):
- sum = sum + i;
- return sum;
- def main():
- result = tinhTongBoiSo(1000);
- print(result);
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement