program SumAndProduct; var num1, num2, num3, num4, num5, sum, product: integer; begin writeln('Enter five integers:'); readln(num1); readln(num2); readln(num3); readln(num4); readln(num5); sum := num1 + num2; product := num3 * num4 * num5; writeln('Sum of first two numbers: ', sum); writeln('Product of last three numbers: ', product); end.
var
num1, num2, num3, num4, num5, sum, product: integer;
begin
writeln('Enter five integers:');
readln(num1);
readln(num2);
readln(num3);
readln(num4);
readln(num5);
sum := num1 + num2;
product := num3 * num4 * num5;
writeln('Sum of first two numbers: ', sum);
writeln('Product of last three numbers: ', product);
end.