Basically, I need to write a program that displays the squares of the numbers from 1 to 10. I need to do this using 2 procedures and call them squareFor and the other should be called, squareDoWhile. The procedures should not take any arguments nor return any values. Lastly, I need to simply display a message telling what kind of loop it is using and then use the appropriate loop to display the number, followed by its square.
I have the theory down and I could do this in a flowchart, I just cant seem to wrap my head around how to code it. Can anyone please help me out? I am having a very hard time grasping the java syntax and how to give variables.