0
Can anyone help me to code this Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be: 5 Times Table 1 5 5 2 5 10 3 5 15 4 5 20 5 5 25 6 5 30
help please
5 Respostas
+ 1
use any loop !! u'll get what u want !!
0
Maybe you can use ""%4d".
0
I'm kinda new to coding, can u be a little bit more clear on what you mean.
0
Veut
0
I hope this will help u
num=Integer.parseInt(jtextfield1.getText());
for(i=1;i<=10;i++)
System.out.println(i+" "+num+" "+(i*num));