Задача №2.
program task2;
var sum,num:integer;
begin
sum:=0;
writeln('enter a number: ');
readln(num);
sum+=(num div 100 + num div 10 mod 10 + num mod 10);
writeln(sum);
end.
Задача №3.
program task3;
var num:integer;
begin
writeln('enter a number: ');
readln(num);
if num mod 2=0 then writeln('even') else writeln('odd');
end.