A three-digit number is entered from the keyboard. Display the double digit of the Pascal units.

program zz1;
var k, s, a: integer; // set variables of integer type
begin
write (‘enter the given three-digit number’); // enter the number from the keyboard
read (k);
s: = k mod 10; // get the last digit, that is, the number of ones
a: = s * 2; // double the received number of units
writeln (‘received result =’, a); // 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.