document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package com.tutorial;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner inputan = new Scanner(System.in);
  10.  
  11.         int batas, i, j;
  12.  
  13.         System.out.println("\\n\\t Pola Segitiga Siku-siku dengan Angka \\n\\n");
  14.  
  15.         System.out.print(" Masukkan batas nilainya : ");
  16.         batas = inputan.nextInt();
  17.  
  18.         System.out.println();
  19.  
  20.         for (i = 1; i <= batas; i++) {
  21.  
  22.             for (j = i; j <= batas; j++) {
  23.  
  24.                 System.out.print(j + "");
  25.             }
  26.  
  27.             System.out.println();
  28.         }
  29.  
  30.         System.out.println();
  31.  
  32.     }
  33. }
  34.  
');