In Python:
total = 0
multiples = []
for num in range(1, 1000):
if (num % 3 == 0 or num % 5 == 0):
multiples.append(num)
total= total+num
print("The Total of all multiples is: " + str(total))
print("The Multiples from 1-100 are :\n" + str(multiples))