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