In Python:
start = int(input("Start: "))
end = int(input("End: "))
total = 0
print("Number\t Squares")
for num in range(start,end+1):
print(num,"\t",num**2)
total+=num**2
print("Total: ",total)
Explanation:
This gets the starting number
start = int(input("Start: "))
This gets the ending number
end = int(input("End: "))
This initializes total to 0
total = 0
This prints the header
print("Number\t Squares")
This iterates through start to end
for num in range(start,end+1):
This prints each number and its square
print(num,"\t",num**2)
This calculates the total squares
total+=num**2
This prints the calculated total
print("Total: ",total)