fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. Scanner S=new Scanner(System.in);
  14. int []a=new int[3];
  15. a[0]=S.nextInt();a[1]=S.nextInt();a[2]=S.nextInt();
  16. for(int i=0;i<3;i++){
  17. for(int j=1;j<=20;j++)
  18. System.out.println(a[i]+"X"+j+"\t"+a[i]*j);
  19. }
  20. }
  21. }
Success #stdin #stdout 0.18s 53612KB
stdin
10 8 2
stdout
10X1	10
10X2	20
10X3	30
10X4	40
10X5	50
10X6	60
10X7	70
10X8	80
10X9	90
10X10	100
10X11	110
10X12	120
10X13	130
10X14	140
10X15	150
10X16	160
10X17	170
10X18	180
10X19	190
10X20	200
8X1	8
8X2	16
8X3	24
8X4	32
8X5	40
8X6	48
8X7	56
8X8	64
8X9	72
8X10	80
8X11	88
8X12	96
8X13	104
8X14	112
8X15	120
8X16	128
8X17	136
8X18	144
8X19	152
8X20	160
2X1	2
2X2	4
2X3	6
2X4	8
2X5	10
2X6	12
2X7	14
2X8	16
2X9	18
2X10	20
2X11	22
2X12	24
2X13	26
2X14	28
2X15	30
2X16	32
2X17	34
2X18	36
2X19	38
2X20	40