Tuesday, December 13, 2011

Segitiga Terbalik



public class NSegitigaBintangTerbalik
{
public static void main(String[] args)
{
int z= 17;
for( int i = 0; i < n; i++)
{
for (int j = i; j>= 1; j--){
System.out.print(" ");
}
for (int k=n; k>i; k--){
System.out.print(" *");
}
System.out.println();
}
System.out.println();
}
}

No comments:

^_^

SEMOGA BERMANFAAT