Senin, 28 September 2009 di 06.24 |  
public class satu
{
public static void main(String [] x)
{
// deklarasi
int tugas,uts,uas;
double nilai;

for (int i=0;iSystem.out.println("Argumen"+i+" adalah :"+x[i]);

//pemberian nilai

tugas=67; uts=65; uas= 76;

// aritmatik

nilai= 0.2*tugas+0.3*uts+0.5*uas;

// mencetak ke layar keluaran

System.out.println(tugas+" "+uts+" "+uas+" "+nilai);
}

}

Diposting oleh UntarA pRatama

0 komentar:

Visit the Site
MARVEL and SPIDER-MAN: TM & 2007 Marvel Characters, Inc. Motion Picture © 2007 Columbia Pictures Industries, Inc. All Rights Reserved. 2007 Sony Pictures Digital Inc. All rights reserved. blogger templates