File: fncallfn.bas

package info (click to toggle)
bwbasic 2.20pl2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,204 kB
  • ctags: 1,248
  • sloc: ansic: 21,002; makefile: 116
file content (9 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10 rem FNCALLFN.BAS -- Test User-defined function called
20 rem                 from user-defined function
30 def fnabs(x) = abs(x)
40 def fncmp(y) = 1.45678+fnabs(y)
50 print "Test user-defined function calling user-defined function"
60 print "The result should be: ";2.45678
70 q = -1.000
80 print "The result is:      : "; fncmp( q )
90 end