Экономика
Паскаль. Сделать из функции (Поиск НОД у 5 чисел) - процедуру.
var a,b,m1,m2,m3,ITOG,c,d,e:integer;
Function nod (x,y:integer):integer;
Begin
If x=y then NOD:=x
else
if x>y then NOD:=NOD(x-y, y)
Else NOD:=NOD(x, y-x);
end;
begin
read (a,b,c,d,e);
m1:= (nod(a,b));
m2:= (nod(c,d));
m3:= (nod(m1,m2));
ITOG:= (nod(m3,e));
writeln (ITOG);
end.