Saturday, July 12, 2014

CONTOH PROGRAM JAVA WHILE BERSARANG



public class Whilebersarang {

    public static void main(String[] args)
    {
        int i=1, j;
        while (i<=5)
        {
            j=1;
            while(j<=i)
            {
                System.out.print(i*j+"");
                j++;
            }
            System.out.println();
            i++;
        }
       
    }
   
 }
Share:

0 komentar:

Post a Comment