I hope you can learn a thing from it. If you have any questions please comment below.

I prefer notepad ++ because it recognizes the code.

I updated it so it can use the previous answer in the next sum. And now it has a brighter white color 0F

Here is my code:

@echo off
title Batch Calculator by ICTrix

color 0F

cls

echo --------------------------------------------------------------

echo Welcome to Batch Calculator by ICTrix

echo -------------------------------------------------------------- echo.

echo Choose what you want to do

echo 1) Go to Legenda

echo 2) Enter Sum

echo 3) Go to credits

echo.

set /p f= Choice:

if "%f%" == "1" goto legenda

if "%f%" == "2" goto sum

if "%f%" == "3" start https://www.instructables.com/id/Batch-Calculator-...

:legenda

cls

echo Legenda:

echo divided by = /

echo times = *

echo plus = +

echo minus = -

echo.

echo Choose what you want to do

echo 2) Enter sum

echo 3) Exit

echo.

set /p p= Choice:

if "%p%" == "1" goto menu

if "%p%" == "2" goto sum

if "%p%" == "3" exit

goto legenda

:sum

cls

echo.

set /p sum= Sum:

set /a ans= %sum%

echo.

cls

echo %sum%=%ans%

echo --------------------------------------------------------------

echo Choose what you want to do

echo 2) Exit

echo 3) Other sum

echo 4) Use answer in next sum

set /p choice= Choice:

if %choice%==2 exit

if %choice%==3 goto sum

if %choice%==4 goto sum2

:sum2

cls

echo ----------------------------------------------------------------

echo Choose what you want to do with the answer

echo.

set /p sum= Sum:

set /a ans2= %sum%+%ans%

echo.

cls

echo %ans%%sum%=%ans2%

echo --------------------------------------------------------------

echo Choose what you want to do

echo 2) Exit

echo 3) Other sum

echo 4) Use answer in next sum

set /p choice= Choice:

if %choice%==2 exit

if %choice%==3 goto sum

if %choice%==4 goto sum3

:sum3

cls

echo ----------------------------------------------------------------

echo Choose what you want to do with the answer

echo.

set /p sum= Sum:

set /a ans3= %sum%+%ans2%

echo.

cls

echo %ans2%%sum%=%ans3%

echo --------------------------------------------------------------

echo Choose what you want to do

echo 2) Exit

echo 3) Other sum

echo 4) Use answer in next sum

set /p choice= Choice:

if %choice%==2 exit

if %choice%==3 goto sum

if %choice%==4 goto sum4

:sum4

cls

echo ----------------------------------------------------------------

echo Choose what you want to do with the answer

echo.

set /p sum= Sum:

set /a ans4= %sum%+%ans3%

echo.

cls

echo %ans3%%sum%=%ans4%

echo --------------------------------------------------------------

echo Choose what you want to do

echo 2) Exit

echo 3) Other sum

set /p choice= Choice: