You are viewing a single comment's thread from:
RE: SEC-S20W5 Iteration in Programming: For, While, and Do-While Loops
Hi @sergeyk!
I need more information about these questions:
6⳾Output the squares of numbers: 1, 4, 9, 16, 25, 36, 49... 400.
Do you want that the students should write a program which will print the squares of the numbers from 1 to 20 which will output 1, 4, 9, 16, ..., 400.. Please elaborate this question. I have gotten it while thinking carefully but still I want to confirm it.
7⳾Output the powers of some number: 1, 2, 4, 8, 16, 32, 64, 128... less than 3000.
Please shed some more light on this question as well to make it clear.
I am expecting a quick response from you.
the output is limited to the specified number. It should be output until the condition is fulfilled.
in 6 - until the result does not exceed 400, in 7 - until the result is less than 3000
Thank you 😊 I have already prepared and after just a few hours you will be able to see it 😜