Computer Science, asked by NagatoUzumaki3, 7 months ago

Improve the program to with while or for loop to do the above task for 20 times. Print the count before the given number and the square value of it.

Answers

Answered by kunjika158
2

Answer:

. Iteration

Computers are often used to automate repetitive tasks. Repeating identical or similar tasks without making errors is something that computers do well and people do poorly.

Repeated execution of a set of statements is called iteration. Because iteration is so common, Python provides several language features to make it easier. We’ve already seen the for statement in chapter 3. This the the form of iteration you’ll likely be using most often. But in this chapter we’ve going to look at the while statement — another way to have your program do iteration, useful in slightly different circumstances.

Similar questions