Subscribe:

Ads 468x60px

Pages

Selasa, 26 April 2011

belajar java

public class loop{
public static void main (String [] args){
int a = 0;
... for (int i = 1; i<6; i++){
int j= i*2;
System.out.print(j+"+");

a= a+j;
if (j == 10){
System.out.print("=");
System.out.print (a);}
}
}}

0 komentar:

Posting Komentar