Minggu, 02 September 2012

Pemfaktoran

 *
 * @author Sunu
 */
public class Pemfaktoran {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       for (int i=2; i<=50; i++) {
    System.out.print ("Faktor dari " +i+ " : ");
       for(int j=2; j<i; j++)
       if((i%j) == 0) System.out.print(j + " ");
       System.out.println();
       }
    }
}

0 komentar:

Posting Komentar

◄ Newer Post Older Post ►
 

Copyright 2011 Something is proudly powered by blogger.com | Design by Tutorial Blogspot Published by Template Blogger