Senin, 12 Juli 2010

Contoh Java Untuk Persegi

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author tdv-donny
*/
public class PersegiAngka {

public static void main(String[]args){
for(int i=1; i<=10;i++){
for(int j=1; j<=10; j++)
if(i * j==10)
System.out.print(i * j + " ");
else System.out.print(i * j + " ");
System.out.println("");

}
}
}

0 comments:

Posting Komentar