program ThreeDigitNumbers;
varN, num, digit1, digit2, digit3, count: integer;
begincount := 0;
write('Enter N: ');readln(N);
for num := 100 to 999 dobegindigit1 := num div 100;digit2 := (num div 10) mod 10;digit3 := num mod 10;
end;
writeln('Total count: ', count);
end.
program ThreeDigitNumbers;
var
N, num, digit1, digit2, digit3, count: integer;
begin
count := 0;
write('Enter N: ');
readln(N);
for num := 100 to 999 do
if (digit1 * digit2 * digit3 = N) thenbegin
digit1 := num div 100;
digit2 := (num div 10) mod 10;
digit3 := num mod 10;
begin
writeln(num);
count := count + 1;
end;
end;
writeln('Total count: ', count);
end.