# sqfile1.py
# Written by Todd Wareham for CS 2500
"""
Given the name of a single-column file of integers as a command-line 
 argument, prints the squares of all integers in that file.
"""

import sys

if len(sys.argv) != 2:
    print "usage: python", sys.argv[0], "filename"
    sys.exit(1)

for x in open(sys.argv[1]):
    print "The square of ", int(x), " is ", int(x) * int(x)
