fork download
  1. class harsha
  2. {
  3. public static void main(String[] args)
  4. {
  5. int i;
  6. int j;
  7. int n=5;
  8. for(i=1;i<=n;i++)
  9. {
  10. for(j=1;j<=n;j++)
  11. {
  12. if((i*j) < 10)
  13. {
  14. System.out.print("0");
  15. }
  16.  
  17. System.out.print((i*j)+ " ");
  18. }
  19. System.out.println( );
  20. }
  21. }
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
Success #stdin #stdout 0.12s 55616KB
stdin
Standard input is empty
stdout
01 02 03 04 05 
02 04 06 08 10 
03 06 09 12 15 
04 08 12 16 20 
05 10 15 20 25