Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jp.school.java
- public class WrittenByClassMates {
- public static void main(String args[]) {
- // Times Table 9x9
- int i, j;
- for(i = 1; i <= 9; i++) {
- for(j = 1; j <= 9; j++) {
- if(i*j < 10) { // If the number's digits under 2
- System.out.print(" ");
- } else { // If the number's digits over 2
- System.out.print(" ");
- }
- System.out.print(i*j);
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement