N=eval(input("enter a number:")) s=0 for i in range(1, N): if i%3==0 and i%5==0 : s=s+i print(s) else:
Quote:Write a function giving the sum of the integers of [1,N] divisible by 3 or 5.
Quote:i dont know what to write in the else part
if
else
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)