home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
maj
/
4503
/
vincent_.exe
/
SINUS.‾PS
< prev
next >
Wrap
Text File
|
1992-06-01
|
667b
|
34 lines
program sinus;
const
nom_fichier='Sinus.txt';
fin='FIN.';
polygone='POLYGONE';
finpoly='FIN_POLY';
var i:real;
x,y:integer;
script:text;
begin
Assign(script, nom_fichier);
{$I-} Rewrite(script); {$I+}
if IOResult=0 then
begin
writeln(script,polygone);
i:=0.0;
repeat
x:=20+round(i*20);
y:=100-round(sin(i)*40);
writeln(script,' ',x:4,',',y:4);
i:=i+0.1;
until i>=4*pi;
writeln(script,finpoly);
writeln(script,fin);
end;
close(script);
end.