Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,21 +0,0 @@
|
|||
# For clarity
|
||||
$Tab = "`t"
|
||||
|
||||
# Create top row
|
||||
$Tab + ( 1..12 -join $Tab )
|
||||
|
||||
# For each row
|
||||
ForEach ( $i in 1..12 )
|
||||
{
|
||||
$( # The number in the left column
|
||||
$i
|
||||
|
||||
# An empty slot for the bottom triangle
|
||||
@( "" ) * ( $i - 1 )
|
||||
|
||||
# Calculate the top triangle
|
||||
$i..12 | ForEach { $i * $_ }
|
||||
|
||||
# Combine them all together
|
||||
) -join $Tab
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
function Get-TimesTable ( [int]$Size )
|
||||
{
|
||||
# For clarity
|
||||
$Tab = "`t"
|
||||
|
||||
# Create top row
|
||||
$Tab + ( 1..$Size -join $Tab )
|
||||
|
||||
# For each row
|
||||
ForEach ( $i in 1..$Size )
|
||||
{
|
||||
$( # The number in the left column
|
||||
$i
|
||||
|
||||
# An empty slot for the bottom triangle
|
||||
@( "" ) * ( $i - 1 )
|
||||
|
||||
# Calculate the top triangle
|
||||
$i..$Size | ForEach { $i * $_ }
|
||||
|
||||
# Combine them all together (and send them to the out put stream, which in PowerShell implicityly returns them)
|
||||
) -join $Tab
|
||||
}
|
||||
}
|
||||
|
||||
Get-TimesTable 18
|
||||
Loading…
Add table
Add a link
Reference in a new issue