File: fncallfn.bas

package info (click to toggle)
bwbasic 2.20pl2-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: ansic: 21,005; makefile: 82
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