RosettaCodeData/Task/Integer-comparison/PowerShell/integer-comparison.psh

11 lines
226 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
$a = [int] (Read-Host a)
$b = [int] (Read-Host b)
if ($a -lt $b) {
Write-Host $a is less than $b`.
} elseif ($a -eq $b) {
Write-Host $a is equal to $b`.
} elseif ($a -gt $b) {
Write-Host $a is greater than $b`.
}