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

25th Sep 2016, 11:26 PM
Pharaoh David
Pharaoh David - avatar
5 Answers
+ 1
use any loop !! u'll get what u want !!
26th Sep 2016, 7:27 PM
Bhushan Gaikwad
Bhushan Gaikwad - avatar
0
Maybe you can use ""%4d".
25th Sep 2016, 11:30 PM
liuyibo
0
I'm kinda new to coding, can u be a little bit more clear on what you mean.
25th Sep 2016, 11:33 PM
Pharaoh David
Pharaoh David - avatar
0
Veut
26th Sep 2016, 12:45 AM
Mathieu Seguin
Mathieu Seguin - avatar
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));
24th Nov 2016, 2:24 PM
Mona Agarwal
Mona Agarwal - avatar