Write a program to display all two-digit numbers whose sum is 10.

program zz1;

var i, a, b: integer; // set variables of integer type

begin

for i: = 10 to 99 do // organize a loop in which we iterate over all numbers from ten to ninety-nine

begin

a: = i mod 10; // find the last digit of a two-digit number

b: = i div 10; // find the first digit of a two-digit number

if a + b = 10 // check the condition, if the sum of the first and second digits of a two-digit number is ten, then

then write (”, i); // print the answer in a line separated by a space

end;

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.