# Two numbers are given. Find the smaller one. (write a program in Pascal)

August 27, 2021 | education

| program zz1;

var

n, k: integer;

begin

writeln (‘Enter n’); // enter the first given number

read (n);

writeln (‘Enter k’); // enter the second given number

read (k);

if n = k then write (‘the numbers are equal’) // check if the numbers are equal, then print the answer

else

if n> k then write (‘Less number =’, k) else write (‘Less number =’, n); // check if the first is greater than the second, then display the second, otherwise the first

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.