The sum of all squares between 1 and 100 inclusive?
If you want to do it in your way I mean first square the value of each number,keep it in a variable and add it to the sum you can use a different variable instead of n to store the square value of each number like this :