Skip to content

Commit

Permalink
Merge pull request #2245 from WashingtonBispo/My_branch
Browse files Browse the repository at this point in the history
Adding is_Square in Python
  • Loading branch information
ZoranPandovski authored Oct 7, 2019
2 parents df5e73d + 0b9fea8 commit bd59792
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions math/Check_is_square/Python/is_square.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import math

x = int(input("Digit your number: "))

if(math.sqrt(x)%1==0):
print("This number is an perfect square")
else:
print("This number is not an perfect square")

0 comments on commit bd59792

Please sign in to comment.