Ask a New Question
Search
Asked by
James
Pseudocode using a repeat-until loop to output the first five square numbers.
Thank you.
Answers
Answers
Answered by
Damon
n = 1
10 output = n*n
print output
n = n+1
if n = 6 quit
otherwise go back up to 10
Answered by
Steve
n=1
s=1
for (i=1;i<=5;i++) {
print s;
n += 2;
s += n
}
Related Questions
Related
does sin and tan repeat 2Pi as well? and what do csc sec an cot do? -2PI?
I need help with pseudocode, and any help regarding forming these programs in Visual Logic would be...
I have the pseudocode but i am confused with this question. Modify the Pay Calculator design from...
e.g. Can you repeat what he said? 1. Can you repeat the thing which he said? (what =relative pron...
What is the pseudocode of a square with side X, A = X^ 2; circle with radius X, A = 3.14 * X 2; equi...
Can you repeat this but in all capital letters please? I got this pretty scene girl I wish you...
This pseudocode is an example of which structure?%0D%0A%0D%0AINPUT time%0D%0A%0D%0ASWITCH time%0D%0A...
This pseudocode is an example of which structure? INPUT time SWITCH time CASE "morning": OUTPUT "Goo...
This pseudocode is an example of which structure? INPUT time SWITCH time CASE “morning”: OUTPUT “Goo...