< p > //Jos arvo 4
< p > //*
< p > //* *
< p > //* * *
< p > //* * * *
< p > using System ;
< p > nimiavaruuden STAR
< p > {
< p > luokka Class1
< p > {
< p > staattinen void main ( )
< p > {
< p > Console.WriteLine ( " Anna arvo " ) ;
< p > int k = int.Parse ( Console.
ReadLine ( ) ) ;
< p > int n = k - 1 ;
< p > int x = 2 * ( K - 1 ) +1 ;
< p> ( int p = 0 ; p < p > {
< p> ( int j = k - 1 ; j > = 0 ; j-- )
< p > {
< p > Console.Write ( "" ) ;
< p > }
< p> ( int i = 0 ; i < p > {
< p > jos ( i % 2 == 1)
< p > {
Console . Kirjoita ( "*" ) ;
< p > }
< p > muu
< p > {
< p > Console.Write ( "" ) ;
< p > } < br > < p > }
< p > Console.WriteLine ( ) ;
< p > k-- ;
< p > }
< p > Console.
ReadLine ( ) ;
< p > }
< p > }
< p > }