Hello,
I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" dialogbox, i will enter 5. so the output will loop twice 2 to show 5 times table upto 12. I cannot output the loop for example twice. Where am I going wrong.
Thanks in advance
int number;
{
number= Integer.parseInt(Dialog.input("Enter repetition?"));
number= Integer.parseInt(Dialog.input("Which timestable do you want?"));
for(int a =1;a<=12; a++)
{
System.out.println(a + " times " +number + " is " + a * number);
}
};