SHARE
TWEET

Untitled

a guest Oct 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Minus {
  2.     public static void main(String[] args) {
  3.         int i,j;
  4.         System.out.printf(" - |");
  5.     for(i=1; i<10; i++)
  6.         System.out.printf("%2d ", i);
  7.     System.out.printf("\n---|------------");
  8.     System.out.printf("----------------\n");
  9.     for(i=1; i<10; i++)
  10.     {
  11.         System.out.printf("%2d |", i);
  12.             for(j=1; j<10; j++)
  13.                 System.out.printf("%2d ", i-j);
  14.             System.out.printf("\n");  
  15.     }
  16.     }
  17.  
  18.  
  19. }
RAW Paste Data
Top