Sum multiples of 3 and 5: Difference between revisions

m
Line 253:
#include <stdlib.h>
 
unsigned long long sum35(unsigned long limit)
{
unsigned long long sum = 0;
for (unsigned long i = 0; i < limit; i++)
if (!(i % 3) || !(i % 5))
Anonymous user