Problem
Read a number n and print a small table: for every number from 1 to n, print the number, a space, and its square. Use a for loop.
n
For the input 3:
3
1 1 2 4 3 9
For the input 0 the program prints nothing.
0
Press «Submit» to run your code against the task's test cases — that is what sets your score. «AI review» is an optional second opinion: it reads your code — logic and style, not just the output — and suggests the next step without handing over the answer. It never changes your score.