Advertisement
satriafu5710

Tabel Perkalian 1-10 Java

Dec 8th, 2020
2,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. package com.tutorial;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         System.out.println("\t Tabel Perkalian 1-10 \n");
  8.  
  9.         for (int i = 1; i <= 10; i++) {
  10.  
  11.             for(int j = 1; j <= 10; j++){
  12.  
  13.                 System.out.print(" " + i * j + "\t");
  14.             }
  15.             System.out.print("\n\n");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement