Advertisement
Guest User

Untitled

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