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. for (int i=1; i<=3; i++) {
  13. System.out.println("جدول ضرب العدد"+i);
  14. int j=i;
  15. while(j<=5){
  16. System.out.println(i+"x"+j+"="+(i*j));
  17. j++;
  18. }
  19. System.out.println("----");
  20. }
  21.  
  22. }
  23. }
  24.  
Success #stdin #stdout 0.18s 55792KB
stdin
Standard input is empty
stdout
جدول ضرب العدد1
1x1=1
1x2=2
1x3=3
1x4=4
1x5=5
----
جدول ضرب العدد2
2x2=4
2x3=6
2x4=8
2x5=10
----
جدول ضرب العدد3
3x3=9
3x4=12
3x5=15
----