Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MultiplicationTable {
- public static void main(String[] args) {
- for (int i = 1; i < 11; i++) {
- for (int j = 2; j < 6; j++) {
- System.out.print(j + " * " + i + " = " + (i * j) + "\t" + "\t");
- }
- System.out.println();
- }
- System.out.println("");
- for (int i = 1; i < 11; i++) {
- for (int j = 6; j < 10; j++) {
- System.out.print(j + " * " + i + " = " + (i * j) + "\t" + "\t");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement