import math
def get_squares(n1, n2): #Given n1, n2 are the numbers both inclusive
print int(math.floor(math.sqrt(n2)) - math.ceil(math.sqrt(n1))) + 1
def get_squares(n1, n2): #Given n1, n2 are the numbers both inclusive
print int(math.floor(math.sqrt(n2)) - math.ceil(math.sqrt(n1))) + 1
No comments:
Post a Comment