Skip to content

Instantly share code, notes, and snippets.

@OtterKring
Last active August 31, 2019 08:12
Show Gist options
  • Save OtterKring/82c645f8078c039e9fc577f947cd3378 to your computer and use it in GitHub Desktop.
Save OtterKring/82c645f8078c039e9fc577f947cd3378 to your computer and use it in GitHub Desktop.
Riddle_DougFinke_20190831
$base = 10
$num = ''
$esc = [char]27
$red = "$esc[31m"
$blue = "$esc[34m"
$reset = "$esc[39m"
for ($i = 1; $i -lt 10; $i++) {
$num = $num + $i
(' ' * ($base-$i-1)) + $num + ' x ' + $red + [string]($base*0.8) + $reset + ' + ' + $blue + $i + $reset + ' = ' + [string]([int32]$num * ($base * 0.8) + $i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment