Given an array consisting of 10 elements entered from the keyboard, output the numbers of the array elements whose sum of digits is 5.

Pascal:
uses crt;
var i:integer;
a:array[1..10] of integer;
begin
randomize;
for i:=1 to 10 do a[i]:=random(99)+1;
for i:=1 to 10 do
begin
if ( (a[i] div 10) + (a[i] mod 10) ) = 5 then
write(a[i],’ ‘);
end;
writeln;
readln;
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.