Skip to content

Instantly share code, notes, and snippets.

@anuragrana
Created October 7, 2018 10:00
Show Gist options
  • Save anuragrana/998d5eb7159783544f96ff9fb21d4c01 to your computer and use it in GitHub Desktop.
Save anuragrana/998d5eb7159783544f96ff9fb21d4c01 to your computer and use it in GitHub Desktop.
#
# Printing square of all numbers less than number n.
# n is provided at runtime.
# Author: https://www.pythoncircle.com
#
if __name__ == '__main__':
n = int(input())
for x in range(n):
print(x*x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment