✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will be the output of the following code snippet?
var
num1, num2, result: integer;
begin
num1 := 15;
num2 := 10;
if (num1 > num2) and (num1 mod 2 = 0) then
Memo1.Lines.Add('num1 is greater than num2 and even.')
else if (num1 > num2) and (num1 mod 2 <> 0) then
Memo1.Lines.Add('num1 is greater than num2 but odd.')
else
Memo1.Lines.Add('num1 is not greater than num2.');
end;