A real number x is given. write a program that halves the integer part of x and displays the result.

program zz1;
var s: integer; // introduce an integer variable
x: real; // introduce a variable of real type
begin
write (‘enter the given real number’); // enter a real number from the keyboard
read (x);
s: = trunc (x); // calculate the integer part of the number x
// display the answer in the format of five characters for the number and two characters after the dot
write (‘reduced by 2 times the integer part of the number x =’, s / 2: 5: 2);
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.