Guest User

Untitled

a guest
Jan 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. public class main
  3. {
  4. public static void main(String[] args)
  5. {
  6. for(int i=1; i<10; ++i)
  7. for(int j=2; j<6; ++j)
  8. {
  9. System.out.printf("%d*%d=%-2d\t", j, i, j*i);
  10.  
  11. if(j%5==0)
  12. System.out.println();
  13. }
  14.  
  15. System.out.println();
  16. for(int i=1; i<10; ++i)
  17. for(int j=6; j<10; ++j)
  18. {
  19. System.out.printf("%d*%d=%-2d\t", j, i, j*i);
  20.  
  21. if(j%9==0)
  22. System.out.println();
  23. }
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment