Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
include c:\cxpl\codes;
|
||||
|
||||
func real F(X);
|
||||
real X;
|
||||
return sqrt(abs(X)) + 5.0*X*X*X;
|
||||
|
||||
real Result, S(11); int I;
|
||||
[Text(0, "Please enter 11 numbers: ");
|
||||
for I:= 0 to 11-1 do S(I):= RlIn(0);
|
||||
|
||||
for I:= 11-1 downto 0 do
|
||||
[RlOut(0, S(I));
|
||||
Result:= F(S(I));
|
||||
if Result > 400.0 then
|
||||
Text(0, " overflows")
|
||||
else RlOut(0, Result);
|
||||
CrLf(0)];
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue