Skip to content

Commit

Permalink
Create d.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratik151 authored Oct 2, 2019
1 parent a91461a commit 3d944b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions d.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$x = 4
for($i=1; $i -le $x; $i++){
#changed -le $x to -le $x - $i
for($k=1; $k -le $x -$i; $k++ ){
Write-Host -NoNewLine " "
}

for($j=1; $j -le 2 * $i - 1; $j++){
Write-Host -NoNewLine "D"
}

Write-Host " "
}

0 comments on commit 3d944b3

Please sign in to comment.