### 4-2 First hundred square numbers

Time | 0.5 h |

Web code | rnuy razx |

Difficulty | n/a |

#### Exercise 4-2: Write a program that outputs the first hundred square numbers

Its output will be:

1 4 9 16 25.. 10000

##### Additional task

Create the loop so that no multiplication operation is necessary. Use the much faster addition instead. Tip: Look at the differences between two consecutive square numbers or look at the sum of the odd numbers from 1 to n.

Submit your answer:

- 4-2 Hundred square numbers (Python) - CodeRunner question

- 4-2 Hundred square numbers (Python) - VPL activity

- 4-2 Hundred square numbers (Python) - VPL question

Sample solution: Solution to 4-2 Hundred square numbers

Page

*2*