Skip to content
This repository was archived by the owner on Aug 26, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/isPerfectSquare.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 31 10:38:19 2019

@author: aranjan5
"""


import sys, math

def isPerfectSquare(num):
if(int(math.sqrt(num))==float(math.sqrt(num))):
return 1
else:
return 0

# find all perfect squares below a given input
2 changes: 2 additions & 0 deletions src/perfectSquaresLessThanInput.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# function to find all perfect squares less than a given input