set /a (arithmetic)
Performs math operations.
Syntax
set /a result=expression
Description
Arithmetic is calculated with set /a: + - * / %% (remainder). Normal set stores as text.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
7
When to use?
Counter, calculation.