Define a primitive data type: Difference between revisions
Added PowerShell
m (→{{header|Sidef}}: fixed the code) |
(Added PowerShell) |
||
Line 1,219:
value 12 is out of bounds [1,10]
value 15 is out of bounds [1,10]</pre>
=={{header|PowerShell}}==
<lang PowerShell>
[Int][ValidateRange(1,10)]$n = 3 # $n can only accepts integers between 1 and 10
</lang>
=={{header|Python}}==
|