3
Contributors
2
Replies
28
Views
4 Years
Discussion Span
Last Post by CodingCabbage
1
def square(low, high):
  count = 1
  for count in range(low,(high+1), 1):
    print (count, " squared is ", count**2)

lowNum = raw_input("Please insert low value")
highNum = raw_input("Please insert high value")
square(int(lowNum), int(highNum))

This may work, haven't tested it as i'm at school; I have no executable rights in library.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.