Design an algorithm that will display to the screen the first 20 numbers, with their squares and cubes, as follows:
Number |
Square |
Cube |
1 |
1 |
1 |
2 |
4 |
8 |
3 |
9 |
27... |
Your solution should include a defining diagram, a pseudo code algorithm, and a desk check of the algorithm.