March 19, 2012

Finding a square root of a number

Normally, you may had come across situations in which you may have to find square roots of some 10 digit numbers.The syntax of finding a square root -
                                                    SQR ( N )
where,
         N = the number of which you need to find the square root.

Example-
1)  Finding square root of 25
      CLS
      PRINT SQR (25)
      END

  Rejoice !!!
  You can also find square roots of non-square numbers upto four decimal digits.

No comments:

Post a Comment