Microsoft Powershell

Clear-Host;
$i=0;
$b=0;
$col=0;
$row=0;

for ($row = 1; $row -le 20; $row++) {

for ($col = 1; $col -le 12; $col++) {

$math = $col *$row;
Write-Host $math “`t “-NoNewline;
}

Write-Host “”;
}

Updated Power Shell Script

Clear-Host
$col=0;
$row=0;
$math=0;
$out = “”;

for ($row = 1; $row -le 20; $row++) {

for ($col = 1; $col -le 12; $col++) {

$math = $col *$row;

if ($col -le 11) {

$out += $math.ToString() + “`t`t”;

}
else {
$out += $math.ToString() + “`n”;
}
}

}

Write-Output $out;