Selamat Mencoba program Array menggunakan JCreator,
Semoga bermanfaat, jangan lupan untuk meninggalkan coment.
class array{
public static void main(String[] args){
int [] a={7};
int i=0, MAX=a[0], MIN=a[0];
System.out.print("Masukan Nilai = ");
while(i<=7){
if(a[i]<=MIN)MIN=a[i];
i++;
if(a[i]>=MAX)MAX=a[i];
i++;
}
for(i=0; i<=6; i++){
System.out.print(" "+a[i]);
System.out.println();
}
System.out.print("MIN = "+MIN);
System.out.println();
System.out.print("MAX = "+MAX);
System.out.println();
}
}
- Judul : Membuat Array Menggunakan JCreator
- Penulis : Rizaldy Eka Jaya
- Kategori : Materi
-
Rating : 100% based on 10 ratings. 5 user reviews.
Item Reviewed: Membuat Array Menggunakan JCreator
9 out of 10 based on 10 ratings. 9 user reviews.