SHARE
TWEET

Untitled

a guest Sep 19th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package jp.school.java
  2.  
  3. public class WrittenByClassMates {
  4.  
  5.   public static void main(String args[]) {
  6.     // Times Table 9x9
  7.     int i, j;
  8.     for(i = 1; i <= 9; i++) {
  9.       for(j = 1; j <= 9; j++) {
  10.         if(i*j < 10) { // If the number's digits under 2
  11.           System.out.print("  ");
  12.         } else { // If the number's digits over 2
  13.           System.out.print(" ");
  14.         }
  15.         System.out.print(i*j);
  16.       }
  17.       System.out.println();
  18.     }
  19.   }
  20.  
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top