03-08-2013, 02:38 PM
SQUARE OF A NUMBER USING LOOK UP TABLE
AIM:
To find the square of the number from 0 to 9 using a Table of Square.
ALGORITHM:
Initialize HL pair to point Look up table
Get the data .
Check whether the given input is less than 9.
If yes go to next step else halt the program
Add the desired address with the accumulator content
Store the result
RESULT:
Thus the program to find the square of the number from 0 to 9 using a Look up table
was executed.