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. Scanner sc=new Scanner(System.in);
  13. int N=sc.nextInt();
  14. for(int i=0;i<10;i++){
  15. int result=N*i;
  16. System.out.println(N + "x"+ i + "=" +result);
  17. }
  18. // your code goes here
  19. }
  20. }
Success #stdin #stdout 0.18s 60828KB
stdin
2
stdout
2x0=0
2x1=2
2x2=4
2x3=6
2x4=8
2x5=10
2x6=12
2x7=14
2x8=16
2x9=18