Pseudocode using a repeat-until loop to output the first five square numbers.

Thank you.

2 answers

n = 1

10 output = n*n
print output

n = n+1

if n = 6 quit

otherwise go back up to 10
n=1
s=1
for (i=1;i<=5;i++) {
print s;
n += 2;
s += n
}