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