PascalABC.NET 3.0, сборка 1110 procedure Euclid(a,b:integer; var gcd:integer); var t:integer; begin while b<>0 do begin a:=a mod b; t:=b; b:=a; a:=t end; gcd:=a end;
var i,a,b,c:integer; begin Randomize; for i:=1 to 10 do begin a:=Random(99)+1; b:=Random(99)+1; Euclid(a,b,c); Writeln('НОД(',a,',',b,')=',c) end end.
Program ok; var num:integer; a,b,c:integer; begin readln(num); a:=num mod 10; num:=(num-a)div 10; b:=num mod 10; num:=(num-b)div 10; c:=num; num:=a+b+c; if num or 1 = num then writeln('Нечетное') else writeln('Четное'); readln; <span>end.</span>
Var a,b:array[1..7]of integer; i:integer; begin for i:=1 to 7 do a[i]:=random(15)+1; b[1]:=a[7]; for i:=2 to 7 do b[i]:=a[i-1]; for i:=1 to 7 do writeln(a[i]:4,b[i]:4); <span>end. </span>