OK...here is the deal.... I am messing around with this jGRASP program...
I was able to create a program that will display the squares of the numbers from 1 to 10 by using the "FOR" structure.
This is what I have done and here are the results, which is what I wanted, thank GOD!
public class squareFor
{
public static void main(String args[])
{
for(int num=1;num<=10;num++)
System.out.println(num+ " square "+num*num);
}
}
RESULT
----jGRASP exec: java squareFor
1 square 1
2 square 4
3 square 9
4 square 16
5 square 25
6 square 36
7 square 49
8 square 64
9 square 81
10 square 100
----jGRASP: operation complete.
Now, the meaning if this post.....I am having an issue in creating a squareDoWhile program that will do this as well. Can any help me....please? :confused: :S :-/ :'(