Make a program that is true if the statement is true, and false otherwise:

Make a program that is true if the statement is true, and false otherwise: a) the sum of the digits of the three-digit number x is an even number; b) a triangle with sides a, b, c is versatile

program zz1;
var n, i, s, a, b, c: integer; // set variables
d: boolean;
begin
read (n); // enter the given three-digit number
while n> 0 do
begin
i: = n mod 10; // get the last digit
n: = n div 10; // discard it
s: = s + i; // add it to the amount
end;
if s mod 2 = 1 then d: = false else d: = true; // check if the sum of the digits is odd, then write false, otherwise true
write (d); // display the answer
read (a, b, c); // enter the sides of the triangle
if (a <> b) and (a <> c) and (b <> c) then d: = true else d: = false; // check if they are all different, then write true, otherwise false
write (d); // print 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.