File: abs.bas

package info (click to toggle)
bwbasic 2.20pl2-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,764 kB
  • sloc: ansic: 21,002; makefile: 80
file content (5 lines) | stat: -rw-r--r-- 154 bytes parent folder | download | duplicates (12)
1
2
3
4
5
10 rem ABS.BAS -- Test ABS() function
20 X = -1.23456789
30 ABSX = ABS( X )
40 print "The absolute value of "; X; " is"; ABSX
50 print "Is that correct?"