Write a program that enters a sequence of integers ending in zero and determines how many of these numbers

Write a program that enters a sequence of integers ending in zero and determines how many of these numbers satisfy the condition: the sum of the values of the digits in the decimal notation of the number is 10

We need to write a program that enters a sequence of integers ending in zero and determines how many of these numbers satisfy the condition: the sum of the values of the decimal digits is 10.
We write the program:
Pascal.
program qq;
var
a, b, s, n: integer;
begin
repeat
readln (a);
b: = a;
s: = 0;
while b> 0 do
begin
s: = s + b mod 10;
b: = b div 10;
end;
if s = 10 then inc (n);
until a = 0;
writeln (n);
end.
The program has been written.



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.