I'm sorry if I sound rushed, but I need some help with one of my assignments. I am having some issues coding my "for" loops. I have an assignment that requests a table that receives an integer input. Once I input an integer, the table will display all of the squared and cubed numbers of every number leading up to that input. See example below:

enter integer: 3

Number Square Cube
1 1 1
2 4 8
3 9 27

continue? (y/n):

The code I have just keeps repeating and does not increment. I tried incrementing up to the input, but that didn't work either. Any help is greatly appreciated. Thanks.