Write a program that reads a number and displays its module.

program zz1;
var n, b: integer; // set variables of integer type
begin
write (‘Enter a number’);
read (n); // enter any number from the keyboard
b: = abs (n); // calculate the modulus of a given number using the function
write (‘Modulus of a given number =’, b); // display the answer
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.