produces the following sequences of numbers as outputs.
Noutput
0
1 01
2 0 2 2 3
3 0 2 4 3 4 5
4 0 2 4 6 4 5 6 7
0 2 4 6 8 5 6 7 8 9
or
Determine the algorithm that was used to generate the numbers in this table, and
1. Write it down.
2. Execute it for N = 6, and write down your result.
3. Give your description of the algorithm to a friend who is not a programmer, and ask him or her to
execute it for N = 6.
What is the sequence of numbers for N = 6? (Give your answer as integers separated by single spaces.)
Answers
Answered by
0
Answer:
print("0"\n)
print("1 01
"\n)
print("2 0 2 2 3"\n
)
print("3 0 2 4 3 4 5
"\n)
print("4 0 2 4 6 4 5 6 7
"\n)
print("0 2 4 6 8 5 6 7 8 9"\n)
The above program is on python.
Pls dont give 'or' questions as this is not a exam!!
Similar questions