# Load the System.Numerics assembly if not already loaded (usually not needed in modern PowerShell)
# Add-Type -AssemblyName System.Numerics
# Create BigInteger objects
$num1 = [System.Numerics.BigInteger]::Parse("123456789012345678901234567890")
$num2 = [System.Numerics.BigInteger]::Parse("987654321098765432109876543210")
# Perform arithmetic operations
$sum = $num1 + $num2
Write-Host "Sum: $sum"
$product = $num1 * $num2
Write-Host "Product: $product"
Главный модератор
Ответов: 3000
Рейтинг: 396
|
|||
|
|||
карма: 6 |
|