Question: Using Netbeans, use repetition to display a table of values showing x, the square of x and the cube of x. X is to go up to 5.
x Square(x) Cube(x)
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125
I just require simple code for the problem and please do proper documentation of code.