Summary: Use Windows PowerShell to multiply the value stored in a variable and store the results.
How can I use Windows PowerShell to multiply the value of a variable and store the results in the same variable?
Use the *= operator, for example:
PS C:\> $a = 2
PS C:\> $a *= 3
PS C:\> $a
6
0 comments