My Snippets
My Collections
Search Engine
Pricing
Sum of first int except divisible for 5:
unknown
plain_text
2 years ago
122 B
3
Indexable
n=int(input("n=")) sum=0 for i in range(1,n+1): if i % 5 ==0: break else: sum+=i print(sum)
Editor is loading...