• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet code for table?

 
chad steinacker
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to write an applet that calculates the squares and cubes of the numbers from 0-10 and draws the resulting values in a table format as follows:
number square cube
0 0 0
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125
6 36 216
7 49 343
8 64 512
9 81 729
10 100 1000
Im really lost on this one???
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this gives you some ideas:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic