Powershell - Arithmetic Operators Examples



The following scripts demonstrates the arithmetic operators.

> $a = 10
 
> $b = 20
 
> $c = 25
 
> $d = 25
 
> $a + $b
 30
 
> $a - $b
 -10
 
> $a * $b
 200
 
> $b / $a
 2
 
> $b % $a
 0 
powershell_operators.htm
Advertisements