DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Numbers — Example 27

Quick explanation + ready code for: Numbers.

PowerShell Numbers Back to examples
Back to language
Syntax: Numbers in PowerShell. ID: #27

Code

$a=19; $b=20
Write-Host ($a+$b)
Write-Host ($a*$b)

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.