Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
dim s(10)
|
||||
print "Enter 11 numbers."
|
||||
for i = 0 to 10
|
||||
print i +1;
|
||||
input " => "; s(i)
|
||||
next i
|
||||
print
|
||||
'Results
|
||||
for i = 10 to 0 step -1
|
||||
print "f("; s(i); ") = ";
|
||||
r = f(s(i))
|
||||
if r > 400 then
|
||||
print "-=< overflow >=-"
|
||||
else
|
||||
print r
|
||||
end if
|
||||
next i
|
||||
end
|
||||
|
||||
function f(n)
|
||||
f = sqr(abs(n)) + 5 * n * n * n
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue