我在这里到底在做什么错,它似乎在减去就好了,但是加法和乘法似乎根本不起作用。
如何获取它以正确进行计算,并允许if语句也可以正常运行,即使数字大小不正确也是如此。
$a = Read-Host "What is your name?"
$b = Read-Host "Enter a 2 digit number"
$c = Read-Host "Enter a 3 digit number"
if (($b -ge 10) -and ($b -le 99) -and ($c -ge 100) -and ($c -le 999)){
$d = $b + $c
$e = $b * $c
$g = $b - $c
$d
$e
$g
Write-host "Here you go $a"
}
else {
write-host "Enter the numbers correctly"
}