Посчитай на языке Паскаль 1 задача
var s,k: integer;
begin
s = 0;
for k := 3 to 7 do
s = s + 6;
writeln(s);
end.
2 задача
var
a, b, n: longint;
begin
readln(n);
a := n mod 10;
n := n div 10;
while n > 0 do begin
b := n mod 10;
n := n div 10;
end;
writeln(a+b);
readln;
end.
3 задача
var a,b,c,d:integer;
begin
readln(a);
d := a mod 10;
repeat
b := a mod 10;
a := a div 10;
until a=0;
c := d+b;
writeln(c);
end