Powershell si bradul :)

brad_ps

Cine vrea acest bradutz in Powershell il poate downloda de Aici.
Codul este foarte simplu:
    $varf = “^”
    $frunze = “/|\”
    write-host -foregroundcolor ‘Red’ ($varf.PadLeft(16))
    $tree = “/|\”
  1..15 | ForEach-Object  {
    $a=$_
     write-host -fore ‘green’ (” “*(15-$a)+$frunze)
    $frunze=”/”+$frunze+”\”
    }

    write-host -foregroundcolor ‘green’ (“|||”.PadLeft(17))
    write-host -foregroundcolor ‘green’ (“|||”.PadLeft(17))
    write-host -foregroundcolor ‘Cyan’ (“\—/”.PadLeft(18))
    write-host -foregroundcolor ‘Cyan’ (“—“.PadLeft(17))

Sarbatori Fericite!

VN:F [1.9.20_1166]
Rating: 8.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Powershell si bradul :), 8.0 out of 10 based on 1 rating

Leave a Reply