Two real numbers x and y are given. Make a program for calculating their sum and product.

program zz1;
var x, y, r, s: real; // set variables of non-integer type
begin
write (‘enter the first number’); // enter the first number from the keyboard
read (x);
write (‘enter the second number’); // enter the second number from the keyboard
read (y);
r: = x + y; // calculate the sum of two numbers using the formula
writeln (‘the sum of two numbers =’, r: 5: 2); // display the answer in the format of five characters for the whole number and two characters after the dot
s: = x * y; // calculate the product of two numbers using the formula
write (‘product of two numbers =’, s: 5: 2); // display the answer in the format of five characters for the whole number and two characters after the dot
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.