Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 7, 2014 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/32080495010144a0de3e to your computer and use it in GitHub Desktop.
Save Fhernd/32080495010144a0de3e to your computer and use it in GitHub Desktop.
Generación de figuras usando asteriscos.
// Declaración de clase
public class Figuras
{
// El método 'main' inicia la ejecución de la aplicación
public static void main( String[] args)
{
System.out.printf( "*********\t***\t *\t *\n");
System.out.printf( "* * * * *** * *\n");
System.out.printf( "* * * * ***** * *\n");
System.out.printf( "* * * * * * *\n");
System.out.printf( "* * * * * * *\n");
System.out.printf( "* * * * * * *\n");
System.out.printf( "* * * * * * *\n");
System.out.printf( "* * * * * * *\n");
System.out.printf( "*********\t*** *\t *\n");
} // Fin del método 'main'
} // Fin de la declaración del cuerpo de la clase 'Ch02_Figuras'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment