Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement