Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
pascal/ITG/KLAU1_02.PAS
2001-11-30 12:14:44 +01:00

13 lines
259 B
Plaintext

var a,b,cs,max: integer;
begin
Write('max: ');
ReadLn(max);
for a:=1 to max do begin
for b:=a to max do begin
cs := Sqr(a)+Sqr(b);
if Sqrt(cs)=Int(Sqrt(cs)) then WriteLn(a,'ý+',b,'ý=',Sqrt(cs):0:0,'ý');
end;
end;
end.