program CountNumbersEndingInTwo;
varnumbers: array[1..10] of Integer;i, count: Integer;
begincount := 0;
writeln('Enter 10 integers:');for i := 1 to 10 dobeginwrite('Enter number ', i, ': ');readln(numbers[i]);
end;
writeln('Count of numbers ending in 2: ', count);end.
program CountNumbersEndingInTwo;
var
numbers: array[1..10] of Integer;
i, count: Integer;
begin
count := 0;
writeln('Enter 10 integers:');
if numbers[i] mod 10 = 2 thenfor i := 1 to 10 do
begin
write('Enter number ', i, ': ');
readln(numbers[i]);
count := count + 1;
end;
writeln('Count of numbers ending in 2: ', count);
end.