Program membuat tampilan SegiTiga Bintang
/**
* NestedLoop
* Copyright 2006 by Jeff Heaton(jeff@jeffheaton.com)
*the out put=
* * * * * * * * *
* * * * * * * *
* * * * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*
* @Yoseph Ole
* @version 1.1
*/
public class NestedLoopBintang
{
public static void main(String args[] )
{
for( int x = 10; x>1 ; x -- )
{
for( int y = 1; y
{
System.out.print(" *");
}
System.out.println("");
}
}
}
No comments:
Post a Comment