< p> //Por valor de 4
< p> //*
< p> //* *
< p> //* * *
< p> //* * * *
< p> using System;
< p> espacio de nombres ESTRELLA
< p> {
< p> Class1 clase
< p > {
< p> static void Main ()
< p > {
< p> Console.WriteLine ( " Introduzca el valor " ) ;
< p> int k = int.Parse ( Console.
ReadLine ());
< p> int n = k - 1 ;
< p> int x = 2 * ( k - 1 ) 1 ;
< p> for (int p = 0 ; p
{
< p> for (int j = k - 1 ; j > = 0 ; j-- )
< p > {
< p> Console.Write ("" ) ;
< p >}
< p> for (int i = 0 ; i
{
< p> si (i % 2 == 1 )
< p > {
< p> Console. escribir ("*" ) ;
< p >}
< p> cosa
< p > {
< p> Console.Write ("" ) ;
< p >}
}
< p> Console.WriteLine ();
< p> k-- ;
< p >}
< p> Console.
ReadLine ();
}
< p >}
< p >}