- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
# PowerShell
switch ($true)
{
($firstNumber -gt $secondNumber) {Write-Output ("{0} > {1}" -F $firstNumber, $secondNumber)}
($firstNumber -eq $secondNumber) {Write-Output ("{0} == {1}" -F $firstNumber, $secondNumber)}
($firstNumber -lt $secondNumber) {Write-Output ("{0} < {1}" -F $firstNumber, $secondNumber)}
}
PolinaAksenova 24.03.2021 19:19 # +3
gologub 24.03.2021 21:23 # +1
Stallman 24.03.2021 21:52 # +3
MAPTbIwKA 25.03.2021 20:40 # +1
gologub 26.03.2021 00:15 # 0