home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / devtools / files / lb202win.exe / LB202W.EXE / SQRT.BAS < prev    next >
Encoding:
BASIC Source File  |  2000-12-06  |  163 b   |  9 lines

  1.  
  2.     'how to get the square root of a number
  3.     print "the square root of "; 2; " is "; sqrt(2)
  4.     end
  5.  
  6. function sqrt( a )
  7.   sqrt = a ^ 0.5
  8. end function
  9.