program SumMultiplesOfThree;
vara, b, c, sum: integer;
beginwriteln('Enter three three-digit numbers:');readln(a, b, c);
sum := 0;
if a mod 3 = 0 thensum := sum + a;if b mod 3 = 0 thensum := sum + b;if c mod 3 = 0 thensum := sum + c;
writeln('Sum of numbers divisible by 3: ', sum);end.
program SumMultiplesOfThree;
var
a, b, c, sum: integer;
begin
writeln('Enter three three-digit numbers:');
readln(a, b, c);
sum := 0;
if a mod 3 = 0 then
sum := sum + a;
if b mod 3 = 0 then
sum := sum + b;
if c mod 3 = 0 then
sum := sum + c;
writeln('Sum of numbers divisible by 3: ', sum);
end.