Make up an algorithm for three numbers A, B, C for displaying the sum of the first and second

Make up an algorithm for three numbers A, B, C for displaying the sum of the first and second and the difference between the second and third.

program zz1;
var a, b, c, d, m: integer; // set variables of integer type
begin
write (‘enter the first number’); // enter the first number from the keyboard
read (a);
write (‘enter the second number’); // enter the second number from the keyboard
read (b);
write (‘enter the third number’); // enter the third number from the keyboard
read (c);
d: = a + b; // calculate the sum of the numbers
m: = b – c; // calculate the difference
writeln (‘the sum of the first and second numbers =’, d);
writeln (‘the difference between the second and third numbers =’, m);
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.