SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
To Check if a Number is Perfect Square
To Check if a Number is Perfect Square
int CheckPerfectSquare (int N): Read an Integer N # Find the Square root of N & store the result in root Root = Sqrt ( N ) ''' If we do square for the number "Root", & compare with the input number, & If it matches, the number is a Perfect Square , Else if it doesn't matches ''' If Root * Root == N : Return 1 Else : Return 0
PREVIOUS
NEXT
HOME