This is my first time on Stack Overflow so please be lenient with this question. I have been experimenting with programming with batch and using DOSbox to run them on my linux machine.
Here is the code I have been using:
@echo off
set a=3
set b=4
set c=%a%+%b%
echo %c%
set d=%c%+1
echo %d%
The output of that is:
3+4
3+4+1
How would I add the two variables instead of echoing that string?
Copyright Notice:Content Author:「swarajd」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10674974/calculating-the-sum-of-two-variables-in-a-batch-script