So in school we just learned the for command and then our teacher made us do some exercises. One exercise involved making a program that outputted this:
1
4
9
16
25
36
49
64
81
100
For the whole 20 or so minutes given to us to make the 4 for programs, this one had me completely flustered. I thought and I thought how to do it and nothing I thought of worked. T_T My smart classmates couldn't think of an expression to fit it either. So it involves perfect squares from 1 to 10. What should be my expressions?