/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package arraykelipatan3;
/**
*
* @author Angga
*/
public class arrayKelipatan3 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int[] kelipatan3 = new int[8];
int index=0;
int nomor=1;
for(int i=1; i<=25; i++){
if(i%3==0){
kelipatan3[index]=i;
System.out.println("Bilangan kelipatan 3 ke "+nomor+" = "+kelipatan3[index]);
nomor++;
index++;
}
}
}
}