program CountMultiplesOfEight;
varn, count, i: integer;
beginwriteln('Enter a number: ');readln(n);
count := 0;
for i := n to 100 dobeginif i mod 8 = 0 thencount := count + 1;end;
writeln('The number of multiples of 8 between ', n, ' and 100 is: ', count);end.
program CountMultiplesOfEight;
var
n, count, i: integer;
begin
writeln('Enter a number: ');
readln(n);
count := 0;
for i := n to 100 do
begin
if i mod 8 = 0 then
count := count + 1;
end;
writeln('The number of multiples of 8 between ', n, ' and 100 is: ', count);
end.