- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
8086 program to find the square root of a perfect square root number
In this program we will see how to find the square root of a perfect squared.
Problem Statement
Write 8086 Assembly language program to find the square root of a perfect squared number. The number is stored at memory address 3000. Finally store the result at memory address 3002.
Discussion
For the perfect square number starting from 0 we are performing square of it, then check whether it is same as the given number or not. If they are same then the current value will be the square root.
For a number 51H (81D), we will check 02, 12, 22, ….. , 92. After 92 it is 51H. So the 9 is square root.
Input
Address | Data |
---|---|
… | … |
3000 | 51 |
3001 | 00 |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
3002 | 09 |
… | … |
- Related Articles
- 8086 program to find Square Root of a number
- How to find perfect square root?
- 8085 program to find square root of a number
- Java program to find the square root of a given number
- Find the smallest number by which 396 must be divided to obtain a perfect square. Also find the square root of the perfect square so obtained.
- Find the smallest number by which 5103 can be divided to get a perfect square. Also find the square root of the perfect square so obtained.
- Check if a number is perfect square without finding square root in C++
- Find the smallest number by which 1458 should be multiplied so as to get a perfect square. Also, find the square root of the square number obtained.
- Find the smallest number by which 180 should be multiplied so as to get a perfect square. Also, find the square root of the square number obtained.
- Find the smallest number by which 180 must be multiplied so that it becomes a perfect square. Also, find the square root of the perfect square so obtained.
- Find the smallest whole number by which 3950 should be multiplied so as to get a perfect square number also find the square root of the square number so obtained
- Find the square root of 2025.
- Find the square root of 3.5.
- Find the square root of 1056.25
- Find the square root of 1250.

Advertisements